diff --git a/apps/documenteditor/main/app/view/ShapeSettings.js b/apps/documenteditor/main/app/view/ShapeSettings.js index 33ce7c598..76c98258b 100644 --- a/apps/documenteditor/main/app/view/ShapeSettings.js +++ b/apps/documenteditor/main/app/view/ShapeSettings.js @@ -1362,6 +1362,7 @@ define([ }); this.sldrGradient.on('addthumb', function(cmp, index, nearIndex, color){ me.GradColor.colors[index] = me.GradColor.colors[nearIndex]; + me.GradColor.currentIdx = index; me.sldrGradient.addNewThumb(index, color); }); this.sldrGradient.on('removethumb', function(cmp, index){ diff --git a/apps/documenteditor/main/app/view/TextArtSettings.js b/apps/documenteditor/main/app/view/TextArtSettings.js index f1a445a19..89600a6df 100644 --- a/apps/documenteditor/main/app/view/TextArtSettings.js +++ b/apps/documenteditor/main/app/view/TextArtSettings.js @@ -950,6 +950,7 @@ define([ }); this.sldrGradient.on('addthumb', function(cmp, index, nearIndex, color){ me.GradColor.colors[index] = me.GradColor.colors[nearIndex]; + me.GradColor.currentIdx = index; me.sldrGradient.addNewThumb(index, color); }); this.sldrGradient.on('removethumb', function(cmp, index){ diff --git a/apps/presentationeditor/main/app/view/ShapeSettings.js b/apps/presentationeditor/main/app/view/ShapeSettings.js index 602299ba0..3043c455a 100644 --- a/apps/presentationeditor/main/app/view/ShapeSettings.js +++ b/apps/presentationeditor/main/app/view/ShapeSettings.js @@ -1274,6 +1274,7 @@ define([ }); this.sldrGradient.on('addthumb', function(cmp, index, nearIndex, color){ me.GradColor.colors[index] = me.GradColor.colors[nearIndex]; + me.GradColor.currentIdx = index; me.sldrGradient.addNewThumb(index, color); }); this.sldrGradient.on('removethumb', function(cmp, index){ diff --git a/apps/presentationeditor/main/app/view/SlideSettings.js b/apps/presentationeditor/main/app/view/SlideSettings.js index 469038244..11ef1102a 100644 --- a/apps/presentationeditor/main/app/view/SlideSettings.js +++ b/apps/presentationeditor/main/app/view/SlideSettings.js @@ -806,6 +806,7 @@ define([ }); this.sldrGradient.on('addthumb', function(cmp, index, nearIndex, color){ me.GradColor.colors[index] = me.GradColor.colors[nearIndex]; + me.GradColor.currentIdx = index; me.sldrGradient.addNewThumb(index, color); }); this.sldrGradient.on('removethumb', function(cmp, index){ diff --git a/apps/presentationeditor/main/app/view/TextArtSettings.js b/apps/presentationeditor/main/app/view/TextArtSettings.js index d2940b0cd..04a9f738a 100644 --- a/apps/presentationeditor/main/app/view/TextArtSettings.js +++ b/apps/presentationeditor/main/app/view/TextArtSettings.js @@ -1259,6 +1259,7 @@ define([ }); this.sldrGradient.on('addthumb', function(cmp, index, nearIndex, color){ me.GradColor.colors[index] = me.GradColor.colors[nearIndex]; + me.GradColor.currentIdx = index; me.sldrGradient.addNewThumb(index, color); }); this.sldrGradient.on('removethumb', function(cmp, index){ diff --git a/apps/spreadsheeteditor/main/app/view/ShapeSettings.js b/apps/spreadsheeteditor/main/app/view/ShapeSettings.js index 9b28011ca..6585349ca 100644 --- a/apps/spreadsheeteditor/main/app/view/ShapeSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ShapeSettings.js @@ -1298,6 +1298,7 @@ define([ }); this.sldrGradient.on('addthumb', function(cmp, index, nearIndex, color){ me.GradColor.colors[index] = me.GradColor.colors[nearIndex]; + me.GradColor.currentIdx = index; me.sldrGradient.addNewThumb(index, color); }); this.sldrGradient.on('removethumb', function(cmp, index){ diff --git a/apps/spreadsheeteditor/main/app/view/TextArtSettings.js b/apps/spreadsheeteditor/main/app/view/TextArtSettings.js index 9141afbb5..9ce20f43e 100644 --- a/apps/spreadsheeteditor/main/app/view/TextArtSettings.js +++ b/apps/spreadsheeteditor/main/app/view/TextArtSettings.js @@ -1263,6 +1263,7 @@ define([ }); this.sldrGradient.on('addthumb', function(cmp, index, nearIndex, color){ me.GradColor.colors[index] = me.GradColor.colors[nearIndex]; + me.GradColor.currentIdx = index; me.sldrGradient.addNewThumb(index, color); }); this.sldrGradient.on('removethumb', function(cmp, index){