Mercurial > libervia-desktop-kivy
comparison 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 |
comparison
equal
deleted
inserted
replaced
410:2a58f3d756ad | 411:b018386653c2 |
---|---|
25 | 25 |
26 # Chat | 26 # Chat |
27 | 27 |
28 | 28 |
29 <AttachmentItem>: | 29 <AttachmentItem>: |
30 size_hint: None, 1 | 30 size_hint: None, None |
31 width: dp(100) | 31 size: self.minimum_width, dp(50) |
32 SymbolLabel: | 32 SymbolLabel: |
33 symbol: root.get_symbol(root.data) | 33 symbol: root.get_symbol(root.data) |
34 text: root.data.get('name', '') | 34 text: root.data.get('name', '') |
35 bold: False | 35 bold: False |
36 on_press: root.on_press() | 36 on_press: root.on_press() |
37 | 37 |
38 | 38 |
39 <AttachmentsLayout>: | 39 <AttachmentsLayout>: |
40 attachments: attachments | 40 attachments: self |
41 size_hint: 1, None | 41 size_hint: 1, None |
42 height: dp(50) | 42 height: self.minimum_height |
43 BoxLayout: | |
44 id: attachments | |
45 size_hint: None, 1 | |
46 width: self.minimum_width | |
47 | 43 |
48 | 44 |
49 <MessAvatar>: | 45 <MessAvatar>: |
50 size_hint: None, None | 46 size_hint: None, None |
51 size: dp(30), dp(30) | 47 size: dp(30), dp(30) |