[DE] Return separator in view tab

This commit is contained in:
Julia Radzhabova 2022-02-07 18:55:42 +03:00
parent 41a4622fb5
commit f2531c0ad7
2 changed files with 4 additions and 3 deletions

View file

@ -135,10 +135,12 @@ define([
groupToolbar = me.view.chToolbar.$el.closest('.group');
groupToolbar.find('.elset')[1].append(slotChkRulers[0]);
groupRulers.remove();
me.view.$el.find('.separator-rulers').remove();
}
if (!config.isEdit) { // if view tab will be visible in view/restricted-editing mode
me.view.chRulers.hide();
me.view.$el.find('.separator-rulers').remove();
}
me.view.cmbZoom.on('selected', _.bind(me.onSelectedZoomValue, me))

View file

@ -82,6 +82,7 @@ define([
'<span class="btn-slot text" id="slot-chk-statusbar"></span>' +
'</div>' +
'</div>' +
'<div class="separator long separator-rulers"></div>' +
'<div class="group small">' +
'<div class="elset">' +
'<span class="btn-slot text" id="slot-chk-rulers"></span>' +
@ -127,8 +128,7 @@ define([
this.lockedControls = [];
var me = this,
$host = me.toolbar.$el;
var me = this;
var _set = Common.enumLock;
this.btnNavigation = new Common.UI.Button({
@ -247,7 +247,6 @@ define([
});
this.lockedControls.push(this.chRulers);
this.cmpEl = $host;
Common.Utils.lockControls(_set.disableOnStart, true, {array: this.lockedControls});
},