This commit is contained in:
yumoqing 2021-06-28 11:32:33 +08:00
parent 6a98efec88
commit 4ee5c5142f
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ class VResponsiveLayout(ScrollView):
cols = round(self.width / self.org_box_width)
if cols < 1:
cols = 1
if isHandHold() and self.width < self.height:
if isHandHold() and self.width < self.height and self.org_cols >= 2:
cols = 2
box_width = self.width / cols - 2
self._inner.cols = cols

View File

@ -190,8 +190,8 @@ class MyDropDown(DropDown):
h = self.options.get('height',2.5)
a = {}
a['size_hint_y'] = None
a['height'] = CSize(h)
a['font_size'] = CSize(self.options.get('font_size',1))
a['height'] = CSize(2)
a['font_size'] = CSize(1)
for d in data:
v = d.get(self.valueField, None)
t = d.get(self.textField, None)