diff cagou/plugins/plugin_wid_chat.kv @ 411:b018386653c2

chat: work around ScrollView bug in attachments by using a StackLayout instead: cf. https://github.com/kivy/kivy/issues/6745
author Goffi <goffi@goffi.org>
date Sat, 22 Feb 2020 18:34:09 +0100
parents 2caea63ae2ab
children 7c6149c249c1
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.kv	Sat Feb 22 18:28:47 2020 +0100
+++ b/cagou/plugins/plugin_wid_chat.kv	Sat Feb 22 18:34:09 2020 +0100
@@ -27,8 +27,8 @@
 
 
 <AttachmentItem>:
-    size_hint: None, 1
-    width: dp(100)
+    size_hint: None, None
+    size: self.minimum_width, dp(50)
     SymbolLabel:
         symbol: root.get_symbol(root.data)
         text: root.data.get('name', '')
@@ -37,13 +37,9 @@
 
 
 <AttachmentsLayout>:
-    attachments: attachments
+    attachments: self
     size_hint: 1, None
-    height: dp(50)
-    BoxLayout:
-        id: attachments
-        size_hint: None, 1
-        width: self.minimum_width
+    height: self.minimum_height
 
 
 <MessAvatar>: