Fix textarts loading

This commit is contained in:
Julia Radzhabova 2019-08-21 15:40:57 +03:00
parent 11d437603e
commit 8e48413937
3 changed files with 12 additions and 3 deletions

View file

@ -1882,7 +1882,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

@ -1554,7 +1554,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

@ -1845,7 +1845,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);
}
},