From 2400e764e6c7e339b78ecf3e1fdfab4359124786 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 29 Apr 2020 11:01:24 +0300 Subject: [PATCH] [all] debug for insert chart --- apps/common/main/lib/view/Header.js | 4 +++- apps/common/main/resources/less/header.less | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index 36db58947..66cf7da7e 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -204,7 +204,9 @@ define([ } function onAppShowed(config) { - if ( this.labelDocName ) { + if ( this.labelDocName && this.labelDocName.get(0).id == 'title-doc-name' + && this.labelDocName.is(':visible') ) + { var $tools = this.btnSave.$el.parent('#header-tools'); var _left_width = $tools.prev().outerWidth() + $tools.outerWidth(); var _right_width = this.labelUserName.outerWidth(); diff --git a/apps/common/main/resources/less/header.less b/apps/common/main/resources/less/header.less index 3a102b7bc..d22c88966 100644 --- a/apps/common/main/resources/less/header.less +++ b/apps/common/main/resources/less/header.less @@ -374,7 +374,6 @@ } #title-doc-name { - position: absolute; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;