[all] fix bug 42885

This commit is contained in:
Maxim Kadushkin 2019-09-23 17:26:30 +03:00
parent 2f42d77a82
commit 6345ebca47
3 changed files with 13 additions and 3 deletions

View file

@ -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();

View file

@ -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);

View file

@ -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 ) {