This commit is contained in:
yumoqing 2022-02-19 18:13:23 +08:00
parent 586f6a46db
commit 17f605e24b
4 changed files with 1701 additions and 1640 deletions

File diff suppressed because it is too large Load Diff

View File

@ -250,6 +250,9 @@ class DataGridPart(WidgetReady, BoxLayout):
def on_size(self, o, s=None):
if not hasattr(self, 'body'):
return
if hasattr(self, '_toolbar'):
if self._toolbar is not None:
self._toolbar.width = self.width
self.body.size_hint_y = None
if self.header:
self.body.height = self.height - self.header.height

View File

@ -46,7 +46,6 @@ class VResponsiveLayout(WidgetCSS, WidgetReady, ScrollView):
spacing = w.spacing[0]
else:
spacing = (w.spacing[0] + w.spacing[2]) / 2
print('w.padding=', w.padding, 'w.spacing=', w.spacing, 'padding=', padding)
width = (w.width - 2 * padding - cnt * spacing) / cnt
return width
@ -59,6 +58,7 @@ class VResponsiveLayout(WidgetCSS, WidgetReady, ScrollView):
def set_col_width(self, o, s):
if self._inner is None:
return
self._inner.size_hint = [None, None]
self._inner.size = self.size
if isHandHold() and self.width < self.height:
self.cols = 1

View File

@ -12,7 +12,7 @@ from Cython.Build import cythonize
# python setup.py bdist_egg generate a egg file
# Release information about eway
version = "0.1.1"
version = "0.1.2"
description = "kivy blocks is a tool to build kivy ui with json format uidesc files"
author = "yumoqing"
email = "yumoqing@icloud.com"