From 97c9571d226faa930c93aa5d7c0b26fd7958bd49 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 17 Nov 2020 10:52:49 +0800 Subject: [PATCH] bugfix --- kivyblocks/dg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kivyblocks/dg.py b/kivyblocks/dg.py index feff78b..990f1d5 100644 --- a/kivyblocks/dg.py +++ b/kivyblocks/dg.py @@ -290,9 +290,9 @@ class DataGrid(WidgetReady, BoxLayout): self.normal_part.body.scroll_y = o.scroll_y if o.scroll_y <= 0.001: - self.loader.loadNextPage() + self.dataloader.loadNextPage() if o.scroll_y >= 0.999: - self.loader.loadPreviousPage() + self.dataloader.loadPreviousPage() def getData(self): if not self.row_selected: @@ -323,7 +323,7 @@ class DataGrid(WidgetReady, BoxLayout): ,'row_height=',self.rowHeight() ) self.show_rows = int(self.normal_part.body.height/self.rowHeight()) - self.loader.setPageRows(self.show_rows) + self.dataloader.setPageRows(self.show_rows) def getShowRows(self): if self.show_rows == 0: