diff cagou/plugins/plugin_wid_widget_selector.kv @ 353:19422bbd9c8e

core (widgets handler): refactoring: - CagouWidget now has class properties (to be overridden when needed) which indicate how if the widget handle must add a wrapping ScreenManager (global_screen_manager) or show all instances of the class in a Carousel (collection_carousel). If none of those options is used, a ScrollView will be wrapping the widget, to be sure that the widget will be resized correctly when necessary (without it, the widget could still be drawn in the backround when the size is too small and overflow on the WidgetWrapper, this would be the case with WidgetSelector) - some helper methods/properties have been added to CagouWidget. Check docstrings for details - better handling of (in)visible widget in WidgetsHandler - thanks to the new wrapping ScrollView, WidgetSelect will show scroll bars if the available space is too small. - bugs fixes
author Goffi <goffi@goffi.org>
date Fri, 17 Jan 2020 18:44:35 +0100
parents 1b835bcfa663
children 9c6fe392d623
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_widget_selector.kv	Fri Jan 17 18:44:35 2020 +0100
+++ b/cagou/plugins/plugin_wid_widget_selector.kv	Fri Jan 17 18:44:35 2020 +0100
@@ -39,3 +39,5 @@
 
 <WidgetSelector>:
     spacing: dp(10)
+    size_hint: 1, None
+    height: self.minimum_height