bugfix
This commit is contained in:
parent
586f6a46db
commit
17f605e24b
3334
kivyblocks/dg.c
3334
kivyblocks/dg.c
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
@ -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
|
||||
|
2
setup.py
2
setup.py
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user