From 71c45112b129f199e6c1b3671b18af7db1fbf025 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 22 Jul 2022 00:38:39 +0300 Subject: [PATCH] [SSE] Refactoring autofilter dialog --- apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js | 5 +---- apps/spreadsheeteditor/main/resources/less/filterdialog.less | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js b/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js index 58e7b7463..218ced987 100644 --- a/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js +++ b/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js @@ -979,7 +979,7 @@ define([ this.template = options.template || [ '
', '
', - '
', + '
', '', '
', '
', @@ -1355,7 +1355,6 @@ define([ }, 100, this); if(Common.Utils.InternalSettings.get('sse-settings-size-filter-window')) { - this.$window.find('.combo-values').css({'height': Common.Utils.InternalSettings.get('sse-settings-size-filter-window')[1] - 103 + 'px'}); this.cellsList.scroller.update({minScrollbarLength : this.cellsList.minScrollbarLength, alwaysVisibleY: true, suppressScrollX: true}); } }, @@ -2026,7 +2025,6 @@ define([ this.curSize = {resize: false, height: this.getSize()[1]}; else if (this.curSize.resize) { var size = this.getSize(); - this.$window.find('.combo-values').css({'height': size[1] - 100 + 'px'}); this.cellsList.scroller.update({minScrollbarLength : this.cellsList.minScrollbarLength, alwaysVisibleY: true, suppressScrollX: true}); } }, @@ -2040,7 +2038,6 @@ define([ this.curSize.resize = true; this.cellsList.scroller.update({minScrollbarLength : this.cellsList.minScrollbarLength, alwaysVisibleY: false, suppressScrollX: true}); } - this.$window.find('.combo-values').css({'height': size[1] - 100 + 'px'}); this.curSize.height = size[1]; } size[0] -= this.menuPanelWidth; diff --git a/apps/spreadsheeteditor/main/resources/less/filterdialog.less b/apps/spreadsheeteditor/main/resources/less/filterdialog.less index 4f4d4f7f0..974a30624 100644 --- a/apps/spreadsheeteditor/main/resources/less/filterdialog.less +++ b/apps/spreadsheeteditor/main/resources/less/filterdialog.less @@ -2,7 +2,7 @@ .combo-values { width: 100%; - height: 162px; + height: 100%; overflow: hidden; .list-item {