bugfix
This commit is contained in:
parent
586f6a46db
commit
17f605e24b
3414
kivyblocks/dg.c
3414
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):
|
def on_size(self, o, s=None):
|
||||||
if not hasattr(self, 'body'):
|
if not hasattr(self, 'body'):
|
||||||
return
|
return
|
||||||
|
if hasattr(self, '_toolbar'):
|
||||||
|
if self._toolbar is not None:
|
||||||
|
self._toolbar.width = self.width
|
||||||
self.body.size_hint_y = None
|
self.body.size_hint_y = None
|
||||||
if self.header:
|
if self.header:
|
||||||
self.body.height = self.height - self.header.height
|
self.body.height = self.height - self.header.height
|
||||||
|
@ -46,7 +46,6 @@ class VResponsiveLayout(WidgetCSS, WidgetReady, ScrollView):
|
|||||||
spacing = w.spacing[0]
|
spacing = w.spacing[0]
|
||||||
else:
|
else:
|
||||||
spacing = (w.spacing[0] + w.spacing[2]) / 2
|
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
|
width = (w.width - 2 * padding - cnt * spacing) / cnt
|
||||||
return width
|
return width
|
||||||
|
|
||||||
@ -59,6 +58,7 @@ class VResponsiveLayout(WidgetCSS, WidgetReady, ScrollView):
|
|||||||
def set_col_width(self, o, s):
|
def set_col_width(self, o, s):
|
||||||
if self._inner is None:
|
if self._inner is None:
|
||||||
return
|
return
|
||||||
|
self._inner.size_hint = [None, None]
|
||||||
self._inner.size = self.size
|
self._inner.size = self.size
|
||||||
if isHandHold() and self.width < self.height:
|
if isHandHold() and self.width < self.height:
|
||||||
self.cols = 1
|
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
|
# python setup.py bdist_egg generate a egg file
|
||||||
# Release information about eway
|
# 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"
|
description = "kivy blocks is a tool to build kivy ui with json format uidesc files"
|
||||||
author = "yumoqing"
|
author = "yumoqing"
|
||||||
email = "yumoqing@icloud.com"
|
email = "yumoqing@icloud.com"
|
||||||
|
Loading…
Reference in New Issue
Block a user