diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index f1ffffc78..61f8dee9d 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -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); } }, diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 41cba028d..cc4ef086d 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -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); } }, diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 51b6c2663..f382175bc 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -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); } },