diff cagou/plugins/plugin_wid_remote.kv @ 305:b2727877bad4

remote: fixed workflow and size for XMLUI panel used with Ad-Hoc commands: the XMLUI panel was added to the StackLayout used for discovery, resulting in a bad sizing. This patch fixes this by moving discovery panel to a new widget, and adding a main BoxLayout where the XMLUI panel are added. The XMLUI close callback is now handled properly. fix 325
author Goffi <goffi@goffi.org>
date Fri, 19 Jul 2019 17:13:05 +0200
parents 1b835bcfa663
children 3c9ba4a694ef
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_remote.kv	Wed Jul 10 08:38:39 2019 +0200
+++ b/cagou/plugins/plugin_wid_remote.kv	Fri Jul 19 17:13:05 2019 +0200
@@ -16,21 +16,25 @@
 
 
 <RemoteControl>:
-    float_layout: float_layout
+    layout: layout
+    BoxLayout:
+        id: layout
+
+
+<DevicesLayout>:
     layout: layout
-    FloatLayout:
-        id: float_layout
-        ScrollView:
-            size_hint: 1, 1
-            pos_hint: {'x': 0, 'y': 0}
-            do_scroll_x: False
-            scroll_type: ['bars', 'content']
-            bar_width: dp(6)
-            StackLayout:
-                id: layout
-                size_hint: 1, None
-                height: self.minimum_height
-                spacing: 0
+    size_hint: 1, 1
+    ScrollView:
+        size_hint: 1, 1
+        pos_hint: {'x': 0, 'y': 0}
+        do_scroll_x: False
+        scroll_type: ['bars', 'content']
+        bar_width: dp(6)
+        StackLayout:
+            id: layout
+            size_hint: 1, None
+            height: self.minimum_height
+            spacing: 0
 
 
 <RemoteItemWidget>: