[DE] Clear chart styles on start loading

This commit is contained in:
Julia Radzhabova 2022-02-16 13:42:57 +03:00
parent 15977a76e1
commit 0dbe14e9fc

View file

@ -447,6 +447,10 @@ define([
this._state.currentStyleFound = false; this._state.currentStyleFound = false;
this._state.drawCurrentStyle = false; this._state.drawCurrentStyle = false;
this._state.previewStylesCount = count; this._state.previewStylesCount = count;
if (this.cmbChartStyle) {
this.cmbChartStyle.menuPicker.store.reset();
this.cmbChartStyle.clearComboView();
}
}, },
onEndChartStylesPreview: function(){ onEndChartStylesPreview: function(){
@ -454,9 +458,6 @@ define([
if (this.cmbChartStyle.menuPicker.store.length>0) { if (this.cmbChartStyle.menuPicker.store.length>0) {
!this._state.currentStyleFound && this.selectCurrentChartStyle(); !this._state.currentStyleFound && this.selectCurrentChartStyle();
this.cmbChartStyle.menuPicker.scroller.update({alwaysVisibleY: true}); this.cmbChartStyle.menuPicker.scroller.update({alwaysVisibleY: true});
} else {
this.cmbChartStyle.menuPicker.store.reset();
this.cmbChartStyle.clearComboView();
} }
this.cmbChartStyle.setDisabled(this.cmbChartStyle.menuPicker.store.length<1 || this._locked); this.cmbChartStyle.setDisabled(this.cmbChartStyle.menuPicker.store.length<1 || this._locked);
} }