diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index 99d14aced..5ce8af24e 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -117,7 +117,6 @@ define([ '
' + '' + '
' + - // '' + '
' + '' + @@ -206,11 +205,21 @@ define([ } function onAppShowed(config) { - if ( config.isCrypted && this.labelDocName ) { - this.labelDocName.before( - '
' + - '' + - '
'); + if ( this.labelDocName ) { + if ( config.isCrypted ) { + this.labelDocName.before( + '
' + + '' + + '
'); + } + + var $tools = this.btnSave.$el.parent('#header-tools'); + var _left_width = $tools.prev().outerWidth() + $tools.outerWidth(), + _right_width = this.labelUserName.outerWidth(); + + if ( _left_width < _right_width ) + this.labelDocName.parent().css('padding-left', _right_width - _left_width); + else this.labelDocName.parent().css('padding-right', _left_width - _right_width); } }