Mercurial > libervia-desktop-kivy
diff cagou/kv/xmlui.kv @ 251:1f579baf787a
xmlui: some design improvments + use ScrollView + BoxLayout instead of DropDown for ListWidget:
there are some trouble with the ScrollView inside the ScrollView which need to be addressed
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Jan 2019 20:24:48 +0100 |
parents | d535446fdf45 |
children | 1b835bcfa663 |
line wrap: on
line diff
--- a/cagou/kv/xmlui.kv Sat Jan 26 20:24:48 2019 +0100 +++ b/cagou/kv/xmlui.kv Sat Jan 26 20:24:48 2019 +0100 @@ -27,9 +27,9 @@ <TextWidget,LabelWidget,JidWidget>: - size_hint: 1, None + size_hint: 1, 1 + size_hint_min_y: max(dp(common_height), self.texture_size[1]) text_size: self.width, None - height: max(dp(common_height), self.texture_size[1]) color: 1, 1, 1, 1 @@ -70,7 +70,17 @@ <ListWidget>: size_hint: 1, None - height: dp(button_height) + layout: layout + height: min(layout.minimum_height, dp(250)) + do_scroll_x: False + scroll_type: ['bars', 'content'] + bar_width: dp(6) + BoxLayout: + id: layout + size_hint: 1, None + height: self.minimum_height + orientation: "vertical" + padding: dp(10) <AdvancedListRow>: @@ -114,6 +124,7 @@ cols: 2 size_hint: 1, None height: self.minimum_height + padding: dp(10) <TabsContainer>: