From 71cff01a67d577ed2ac75ea67ee92f48b356fc69 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 15 Jun 2021 15:43:07 +0800 Subject: [PATCH] bugfix --- kivyblocks/dg.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kivyblocks/dg.py b/kivyblocks/dg.py index ec79b22..a8c6628 100644 --- a/kivyblocks/dg.py +++ b/kivyblocks/dg.py @@ -130,6 +130,7 @@ class Row(BoxLayout): "orientation":"horizontal" }) super(Row, self).__init__(**opts) + self.height = self.part.datagrid.rowHeight() self.init(0) @@ -141,11 +142,8 @@ class Row(BoxLayout): cell = Cell(self,c) self.add_widget(cell) w += cell.width - if cell.height > h: - h = cell.height self.size_hint = None,None self.width = w + self.linewidth * (len(self.rowdesc)+1) - self.height = h #self.part.datagrid.rowHeight() def selected(self): if not hasattr(self,'row_data'):