From 52f7d700dd75287a4e9c1add3068b09ba348b6aa Mon Sep 17 00:00:00 2001 From: Jan Schatz Date: Thu, 16 Aug 2018 23:40:32 +0200 Subject: [PATCH] Workaround for issue #294. I think the real problem is that _Scroller updates the wrong pages in its resize() function. Maybe it should even call needPage() for all pages when the grid's autoHeight property is set. But I don't understand the scroller code good enough to fix this. This workaround just moves the call to grid's resize() method a bit down to when all pages have been updated in updateRowCount(). (#297) --- grid/_Grid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid/_Grid.js b/grid/_Grid.js index a5b8faef8b..d8698a8e4b 100644 --- a/grid/_Grid.js +++ b/grid/_Grid.js @@ -988,10 +988,10 @@ define([ if(this.layout.cells.length){ this.scroller.updateRowCount(inRowCount); } - this._resize(); if(this.layout.cells.length){ this.setScrollTop(this.scrollTop); } + this._resize(); } },