diff cagou/core/menu.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 b77792cc6d12
children 5d994be1161b
line wrap: on
line diff
--- a/cagou/core/menu.py	Mon Jan 27 21:17:08 2020 +0100
+++ b/cagou/core/menu.py	Mon Jan 27 21:17:08 2020 +0100
@@ -448,8 +448,8 @@
         if not choices:
             return
         self.menu = TouchMenu(choices=choices,
-                                center=pos,
-                                size_hint=(None, None))
+                              center=pos,
+                              size_hint=(None, None))
         self.float_layout.add_widget(self.menu)
         self.menu.start_display(touch)
         self.menu_item = item