Mercurial > libervia-desktop-kivy
diff cagou/plugins/plugin_wid_contact_list.py @ 365:9c6fe392d623
core (widgets_handler): use a StencilView + BoxLayout instead of ScrollView as wrapper:
The default wrapping when no Carousel or ScreenManager was used was a ScrollView. This was
causing bugs as the touch event is not propagated correctly when a ScrollView is in
children of ScrollView (notably causing trouble with ModernMenu on ContactList and
FileSharing widgets).
To avoid that, a simple StencilView with BoxLayout is now used instead. If a ScrollView is
needed, it can be added inside the widget (this is the case for WidgetSelector).
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 27 Jan 2020 21:17:08 +0100 |
parents | e2b51663d8b8 |
children | 4d660b252487 |
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_contact_list.py Mon Jan 27 21:17:08 2020 +0100 +++ b/cagou/plugins/plugin_wid_contact_list.py Mon Jan 27 21:17:08 2020 +0100 @@ -18,21 +18,23 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. +from functools import partial +import bisect +import re from sat.core import log as logging -log = logging.getLogger(__name__) -from cagou.core.constants import Const as C -from ..core.common import ContactItem from sat.core.i18n import _ from sat_frontends.quick_frontend.quick_contact_list import QuickContactList from sat_frontends.tools import jid -from cagou.core.utils import FilterBehavior -from cagou.core.menu import SideMenu, TouchMenuBehaviour, TouchMenuItemBehaviour from kivy import properties -from cagou.core import cagou_widget from cagou import G -from functools import partial -import bisect -import re +from ..core import cagou_widget +from ..core.constants import Const as C +from ..core.common import ContactItem +from ..core.utils import FilterBehavior +from ..core.menu import SideMenu, TouchMenuBehaviour, TouchMenuItemBehaviour + + +log = logging.getLogger(__name__) PLUGIN_INFO = {