From 5f1079e08e459a824bb62aac7bf4e9204ce964ce Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 17 Nov 2020 10:49:57 +0800 Subject: [PATCH] bugfix --- kivyblocks/dg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivyblocks/dg.py b/kivyblocks/dg.py index ad44338..feff78b 100644 --- a/kivyblocks/dg.py +++ b/kivyblocks/dg.py @@ -236,6 +236,7 @@ class DataGrid(WidgetReady, BoxLayout): self.color = options.get('color',[0.91,0.91,0.91,1]) self.widget_ids = {} self.row_height = None + self.on_sizeTask = None self.selected_rowid = None self.dataUrl = self.options.get('dataurl') self.show_rows = 0 @@ -268,7 +269,6 @@ class DataGrid(WidgetReady, BoxLayout): self.dataloader.bind(on_deletepage=self.delete_page) self.dataloader.bind(on_pageloaded=self.add_page) self.dataloader.bind(on_newbegin=self.clearRows) - self.on_sizeTask = None self.register_event_type('on_selected') self.register_event_type('on_scrollstop')