From 66345944c718619f9559190883421f74e8437640 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 23 Nov 2021 17:42:28 +0300 Subject: [PATCH] [SSE] Fix slicer styles --- apps/spreadsheeteditor/main/app/view/SlicerSettings.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/SlicerSettings.js b/apps/spreadsheeteditor/main/app/view/SlicerSettings.js index 9035cd863..b088e8e16 100644 --- a/apps/spreadsheeteditor/main/app/view/SlicerSettings.js +++ b/apps/spreadsheeteditor/main/app/view/SlicerSettings.js @@ -414,9 +414,8 @@ define([ onSendThemeColors: function() { // get new table templates - if (this.mnuSlicerPicker && this._originalProps) { + if (this.btnSlicerStyle && this._originalProps) { this.onInitStyles(this._originalProps.asc_getSlicerProperties().asc_getStylesPictures()); - this.mnuSlicerPicker.scroller.update({alwaysVisibleY: true}); } }, @@ -717,7 +716,7 @@ define([ var stylesStore = this.btnSlicerStyle.menuPicker.store; if (stylesStore) { var count = stylesStore.length; - if (count>0 && count==styles.length) { + if (count>0 && count==this.styles.length) { var data = stylesStore.models; _.each(Templates, function(style, index){ data[index].set('imageUrl', style.asc_getImage());