From 4ee5c5142f920a6c4bb20b0ee0b6ac8e27ac5f78 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 28 Jun 2021 11:32:33 +0800 Subject: [PATCH] bugfix --- kivyblocks/responsivelayout.py | 2 +- kivyblocks/widgetExt/inputext.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kivyblocks/responsivelayout.py b/kivyblocks/responsivelayout.py index 25e7a1c..908a0ce 100644 --- a/kivyblocks/responsivelayout.py +++ b/kivyblocks/responsivelayout.py @@ -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 diff --git a/kivyblocks/widgetExt/inputext.py b/kivyblocks/widgetExt/inputext.py index 10f23a7..89097e5 100755 --- a/kivyblocks/widgetExt/inputext.py +++ b/kivyblocks/widgetExt/inputext.py @@ -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)