From bc0c5738b1d6eaef2a5e2dc45dd0111de526bcb7 Mon Sep 17 00:00:00 2001 From: OVSharova Date: Sun, 1 May 2022 19:51:49 +0300 Subject: [PATCH] fix bug left part --- apps/common/main/lib/view/Header.js | 6 +++++- apps/common/main/resources/less/toolbar.less | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index a996a7f432..dffd58f74c 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -759,7 +759,11 @@ define([ else name = this.labelDocName.val(); var width = this.getTextWidth(name); - (width>=0) && this.labelDocName.width(width); + if (width>=0) + { + this.labelDocName.width(width); + Common.NotificationCenter.trigger('window:resize'); + } }, getTextWidth: function(text) { diff --git a/apps/common/main/resources/less/toolbar.less b/apps/common/main/resources/less/toolbar.less index 76a805ebc6..d476b50106 100644 --- a/apps/common/main/resources/less/toolbar.less +++ b/apps/common/main/resources/less/toolbar.less @@ -61,6 +61,8 @@ overflow: hidden; display: flex; + min-width: 150px; + > ul { padding: 4px 0 0; margin: 0;