From 8e48413937dd96c25fdff33242dbb360451ca153 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 21 Aug 2019 15:40:57 +0300 Subject: [PATCH] Fix textarts loading --- apps/documenteditor/main/app/controller/Main.js | 5 ++++- apps/presentationeditor/main/app/controller/Main.js | 5 ++++- apps/spreadsheeteditor/main/app/controller/Main.js | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) 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); } },