diff cagou/plugins/plugin_wid_widget_selector.kv @ 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 19422bbd9c8e
children 3c9ba4a694ef
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_widget_selector.kv	Mon Jan 27 21:17:08 2020 +0100
+++ b/cagou/plugins/plugin_wid_widget_selector.kv	Mon Jan 27 21:17:08 2020 +0100
@@ -39,5 +39,10 @@
 
 <WidgetSelector>:
     spacing: dp(10)
-    size_hint: 1, None
-    height: self.minimum_height
+    container: container
+    ScrollView:
+        BoxLayout:
+            orientation: "vertical"
+            size_hint: 1, None
+            height: self.minimum_height
+            id: container