Fix textarts loading
This commit is contained in:
parent
11d437603e
commit
8e48413937
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue