bugfix
This commit is contained in:
parent
6a98efec88
commit
4ee5c5142f
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user