From 15c62110f3147abba7d98f1758c49a7d9f6640a1 Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Fri, 9 Aug 2019 17:06:01 +0300 Subject: [PATCH] [SSE] Fix resize filter dialog --- .../main/app/view/AutoFilterDialog.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js b/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js index eecd78c84..4c3b659c1 100644 --- a/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js +++ b/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js @@ -517,7 +517,7 @@ define([ this.handler = options.handler; this.throughIndexes = []; this.filteredIndexes = []; - this.curSize = undefined; + this.curSize = null; _options.tpl = _.template(this.template)(_options); @@ -1372,9 +1372,14 @@ define([ onWindowResize: function () { var size = this.getSize(); - if (size !== this.curSize) { - this.$window.find('.combo-values').css({'height': size[1]-100 + 'px'}); + if (this.curSize === null) { this.curSize = size; + } else { + if (size[0] !== this.curSize[0] || size[1] !== this.curSize[1]) { + this.$window.find('.combo-values').css({'height': size[1] - 100 + 'px'}); + this.curSize = size; + this.cellsList.scroller.update({minScrollbarLength : 40, alwaysVisibleY: true, suppressScrollX: true}); + } } },