Merge branch 'develop' into feature/optimization

This commit is contained in:
Julia Radzhabova 2019-08-21 15:41:21 +03:00
commit 8332c3b133
3 changed files with 12 additions and 3 deletions

View file

@ -1878,7 +1878,10 @@ define([
Common.Utils.ThemeColor.setColors(colors, standart_colors);
if (window.styles_loaded) {
this.updateThemeColors();
this.fillTextArt(this.api.asc_getTextArtPreviews());
var me = this;
setTimeout(function(){
me.fillTextArt(me.api.asc_getTextArtPreviews());
}, 1);
}
},

View file

@ -1556,7 +1556,10 @@ define([
Common.Utils.ThemeColor.setColors(colors, standart_colors);
if (window.styles_loaded) {
this.updateThemeColors();
this.fillTextArt(this.api.asc_getTextArtPreviews());
var me = this;
setTimeout(function(){
me.fillTextArt(me.api.asc_getTextArtPreviews());
}, 1);
}
},

View file

@ -1844,7 +1844,10 @@ define([
Common.Utils.ThemeColor.setColors(colors, standart_colors);
if (window.styles_loaded && !this.appOptions.isEditMailMerge && !this.appOptions.isEditDiagram) {
this.updateThemeColors();
this.fillTextArt(this.api.asc_getTextArtPreviews());
var me = this;
setTimeout(function(){
me.fillTextArt(me.api.asc_getTextArtPreviews());
}, 1);
}
},