diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index cc10f585e..f4d3b44dc 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -2825,7 +2825,9 @@ define([ compactview = true; } - me.toolbar.render(_.extend({isCompactView: compactview}, config)); + setTimeout(function () { + me.toolbar.render(_.extend({isCompactView: compactview}, config)); + }, 0); var tab = {action: 'review', caption: me.toolbar.textTabCollaboration}; var $panel = this.getApplication().getController('Common.Controllers.ReviewChanges').createToolbarPanel(); diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index 41b028a80..db588bf1c 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -2076,7 +2076,13 @@ define([ compactview = true; } - me.toolbar.render(_.extend({compactview: compactview}, config)); + /** + * Rendering of toolbar makes rendering of header very slow + * Temporary wrapped up in setTimeout to process events + * */ + setTimeout(function () { + me.toolbar.render(_.extend({compactview: compactview}, config)); + }, 0); if ( config.isEdit ) { me.toolbar.setMode(config); diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index ad8d5848d..15c7dcaf7 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -3127,7 +3127,9 @@ define([ compactview = true; } - me.toolbar.render(_.extend({isCompactView: compactview}, config)); + setTimeout(function () { + me.toolbar.render(_.extend({isCompactView: compactview}, config)); + }, 0); Common.Utils.asyncCall(function () { if ( config.isEdit ) {