diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 2ada45406..ff813f395 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -464,13 +464,12 @@ var BaseAppView = GObject.registerClass({ const availWidth = box.get_width(); const availHeight = box.get_height(); - const oldNPages = this._grid.nPages; this._grid.adaptToSize(availWidth, availHeight); if (this._availWidth !== availWidth || this._availHeight !== availHeight || - oldNPages !== this._grid.nPages) { + this._pageIndicators.nPages !== this._grid.nPages) { Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => { this._adjustment.value = 0; this._grid.currentPage = 0;