[common] debug centering for doc title
This commit is contained in:
parent
c5b46c8955
commit
e37deabb02
|
@ -78,6 +78,7 @@ define([
|
||||||
'<label id="rib-doc-name" />' +
|
'<label id="rib-doc-name" />' +
|
||||||
'</section>' +
|
'</section>' +
|
||||||
'<a id="rib-save-status" class="status-label locked"><%= textSaveEnd %></a>' +
|
'<a id="rib-save-status" class="status-label locked"><%= textSaveEnd %></a>' +
|
||||||
|
'<section style="display: inherit;">' +
|
||||||
'<div class="hedset">' +
|
'<div class="hedset">' +
|
||||||
'<div class="btn-slot" id="slot-hbtn-edit"></div>' +
|
'<div class="btn-slot" id="slot-hbtn-edit"></div>' +
|
||||||
'<div class="btn-slot" id="slot-hbtn-print"></div>' +
|
'<div class="btn-slot" id="slot-hbtn-print"></div>' +
|
||||||
|
@ -102,6 +103,7 @@ define([
|
||||||
'<div class="btn-slot" id="slot-btn-back"></div>' +
|
'<div class="btn-slot" id="slot-btn-back"></div>' +
|
||||||
'<div class="btn-slot" id="slot-btn-options"></div>' +
|
'<div class="btn-slot" id="slot-btn-options"></div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
|
'</section>' +
|
||||||
'</section>';
|
'</section>';
|
||||||
|
|
||||||
var templateLeftBox = '<section class="logo">' +
|
var templateLeftBox = '<section class="logo">' +
|
||||||
|
@ -110,7 +112,7 @@ define([
|
||||||
|
|
||||||
var templateTitleBox = '<section id="box-document-title">' +
|
var templateTitleBox = '<section id="box-document-title">' +
|
||||||
'<div class="extra"></div>' +
|
'<div class="extra"></div>' +
|
||||||
'<div class="hedset" id="header-tools">' +
|
'<div class="hedset">' +
|
||||||
'<div class="btn-slot" id="slot-btn-dt-save"></div>' +
|
'<div class="btn-slot" id="slot-btn-dt-save"></div>' +
|
||||||
'<div class="btn-slot" id="slot-btn-dt-print"></div>' +
|
'<div class="btn-slot" id="slot-btn-dt-print"></div>' +
|
||||||
'<div class="btn-slot" id="slot-btn-dt-undo"></div>' +
|
'<div class="btn-slot" id="slot-btn-dt-undo"></div>' +
|
||||||
|
@ -213,9 +215,9 @@ define([
|
||||||
'</div>');
|
'</div>');
|
||||||
}
|
}
|
||||||
|
|
||||||
var $tools = this.btnSave.$el.parent('#header-tools');
|
var $parent = this.labelDocName.parent();
|
||||||
var _left_width = $tools.prev().outerWidth() + $tools.outerWidth(),
|
var _left_width = $parent.position().left,
|
||||||
_right_width = this.labelUserName.outerWidth();
|
_right_width = $parent.next().outerWidth();
|
||||||
|
|
||||||
if ( _left_width < _right_width )
|
if ( _left_width < _right_width )
|
||||||
this.labelDocName.parent().css('padding-left', _right_width - _left_width);
|
this.labelDocName.parent().css('padding-left', _right_width - _left_width);
|
||||||
|
@ -241,6 +243,7 @@ define([
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if ( $panelUsers ) {
|
||||||
onResetUsers(storeUsers);
|
onResetUsers(storeUsers);
|
||||||
|
|
||||||
$panelUsers.on('shown.bs.dropdown', function () {
|
$panelUsers.on('shown.bs.dropdown', function () {
|
||||||
|
@ -269,6 +272,7 @@ define([
|
||||||
|
|
||||||
$labelChangeRights[(!mode.isOffline && (mode.sharingSettingsUrl && mode.sharingSettingsUrl.length || mode.canRequestSharingSettings))?'show':'hide']();
|
$labelChangeRights[(!mode.isOffline && (mode.sharingSettingsUrl && mode.sharingSettingsUrl.length || mode.canRequestSharingSettings))?'show':'hide']();
|
||||||
$panelUsers[(editingUsers > 1 || editingUsers > 0 && !appConfig.isEdit && !appConfig.isRestrictedEdit || !mode.isOffline && (mode.sharingSettingsUrl && mode.sharingSettingsUrl.length || mode.canRequestSharingSettings)) ? 'show' : 'hide']();
|
$panelUsers[(editingUsers > 1 || editingUsers > 0 && !appConfig.isEdit && !appConfig.isRestrictedEdit || !mode.isOffline && (mode.sharingSettingsUrl && mode.sharingSettingsUrl.length || mode.canRequestSharingSettings)) ? 'show' : 'hide']();
|
||||||
|
}
|
||||||
|
|
||||||
if ( $saveStatus ) {
|
if ( $saveStatus ) {
|
||||||
$saveStatus.attr('data-width', me.textSaveExpander);
|
$saveStatus.attr('data-width', me.textSaveExpander);
|
||||||
|
|
|
@ -77,7 +77,9 @@ define([
|
||||||
'Toolbar': {
|
'Toolbar': {
|
||||||
'render:before' : function (toolbar) {
|
'render:before' : function (toolbar) {
|
||||||
var config = SSE.getController('Main').appOptions;
|
var config = SSE.getController('Main').appOptions;
|
||||||
|
if (!config.isEditDiagram && !config.isEditMailMerge)
|
||||||
toolbar.setExtra('right', me.header.getPanel('right', config));
|
toolbar.setExtra('right', me.header.getPanel('right', config));
|
||||||
|
|
||||||
if (!config.isEdit || config.customization && !!config.customization.compactHeader)
|
if (!config.isEdit || config.customization && !!config.customization.compactHeader)
|
||||||
toolbar.setExtra('left', me.header.getPanel('left', config));
|
toolbar.setExtra('left', me.header.getPanel('left', config));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue