[DE] Use config.customization.layout for status bar

This commit is contained in:
Julia Radzhabova 2021-10-29 17:31:01 +03:00
parent 602acc7bd0
commit e1255c470e
4 changed files with 15 additions and 15 deletions

View file

@ -112,6 +112,10 @@ define([
me.btnSpelling.render( me.statusbar.$layout.find('#btn-doc-spell') );
me.btnDocLang = review.getButton('doclang', 'statusbar');
me.btnDocLang.render( me.statusbar.$layout.find('#btn-doc-lang') );
var isVisible = Common.UI.LayoutManager.isElementVisible('statusBar-textLang') || Common.UI.LayoutManager.isElementVisible('statusBar-docLang');
me.btnDocLang.$el.find('+.separator.space')[isVisible?'show':'hide']();
} else {
me.statusbar.$el.find('.el-edit, .el-review').hide();
}

View file

@ -12,8 +12,9 @@
</div>
<div class="status-group" style="">
<div class="separator short el-edit"></div>
<span id="btn-cnt-lang" class="el-edit"></span>
<span id="btn-doc-lang" class="el-edit"></span>
<span id="btn-cnt-lang" class="el-edit" data-layout-name="statusBar-textLang"></span>
<span id="btn-doc-lang" class="el-edit" data-layout-name="statusBar-docLang"></span>
<div class="separator short el-edit space"></div>
<span id="btn-doc-spell" class="el-edit"></span>
<div class="separator short el-edit"></div>
<div id="btn-doc-review" class="el-edit el-review" style="display: inline-block;"></div>

View file

@ -207,7 +207,6 @@ define([
cls : 'btn-toolbar',
caption : 'English (United States)',
hintAnchor : 'top-left',
style : 'margin-left: 6px;',
disabled: true,
dataHint : '0',
dataHintDirection: 'top',

View file

@ -30,21 +30,12 @@
text-align: center;
}
#btn-doc-lang {
margin-right: 9px;
}
#btn-doc-spell {
margin-right: 5px;
}
#btn-zoom-topage {
margin-right: 9px;
margin-left: 6px;
margin-right: 8px;
}
#btn-zoom-towidth {
margin-right: 9px;
margin-right: 8px;
}
.status-group {
@ -58,12 +49,17 @@
}
.separator {
margin: 0px 3px 0 4px;
margin: 0px 6px;
&.short {
height: 25px;
margin-top: -2px;
}
&.space {
margin: 0px 2px;
border: none;
}
}
#btn-cnt-lang {