bugfix
This commit is contained in:
parent
1d4adac3a3
commit
e790f22d87
@ -158,9 +158,12 @@ class Text(Label):
|
||||
ps = self.parent.padding
|
||||
|
||||
self.width = self.parent.width - ps[0] - ps[2]
|
||||
if self.width > 0:
|
||||
self.set_widget_height()
|
||||
|
||||
def set_widget_height(self, *args):
|
||||
if self.width == 0:
|
||||
return
|
||||
self.text_size = self.width, None
|
||||
rows = len(self.text) * (self.font_size * 0.621) / self.width
|
||||
rows = math.ceil(rows)
|
||||
|
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.3"
|
||||
version = "0.1.4"
|
||||
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