diff --git a/apps/spreadsheeteditor/main/app/view/CellSettings.js b/apps/spreadsheeteditor/main/app/view/CellSettings.js index 3964e3a74..ea2d477dd 100644 --- a/apps/spreadsheeteditor/main/app/view/CellSettings.js +++ b/apps/spreadsheeteditor/main/app/view/CellSettings.js @@ -91,6 +91,8 @@ define([ this.GradColor = { values: [0, 100], colors: ['000000', 'ffffff'], currentIdx: 0}; this.fillControls = []; + this.gradientColorsStr=""; + this.typeGradient = 0; this.render(); this.createDelayedControls(); @@ -910,9 +912,9 @@ define([ var record = this.mnuDirectionPicker.store.findWhere({type: value}); this.mnuDirectionPicker.selectRecord(record, true); if (record) - this.btnDirection.setIconCls('item-gradient ' + record.get('iconcls')); + this.typeGradient = value + 90; else - this.btnDirection.setIconCls(''); + this.typeGradient= -1; this.numGradientAngle.setValue(value, true); } } @@ -934,10 +936,32 @@ define([ Common.Utils.ThemeColor.getHexColor(clr.asc_getR(), clr.asc_getG(), clr.asc_getB())); me.GradColor.values.push(position*100); }); + + var arrGrCollors=[]; for (var index=0; index= me.GradColor.colors.length) { me.GradColor.currentIdx = 0; } @@ -1306,7 +1330,7 @@ define([ rawData = record; } - this.btnDirection.setIconCls('item-gradient ' + rawData.iconcls); + this.typeGradient = rawData.type + 90; this.GradLinearDirectionType = rawData.type; this.numGradientAngle.setValue(rawData.type, true); diff --git a/apps/spreadsheeteditor/main/app/view/ShapeSettings.js b/apps/spreadsheeteditor/main/app/view/ShapeSettings.js index 77248a28f..3cc34e0e1 100644 --- a/apps/spreadsheeteditor/main/app/view/ShapeSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ShapeSettings.js @@ -123,7 +123,7 @@ define([ this.fillControls = []; this.gradientColorsStr=""; - this.typeGradient = 0 ; + this.typeGradient = 0; this.render();