mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
Fix toolbar size after changing theme
This commit is contained in:
@ -84,6 +84,7 @@ define([
|
||||
toolbar.setExtra('right', me.header.getPanel('right', config));
|
||||
if (!config.twoLevelHeader || config.compactHeader)
|
||||
toolbar.setExtra('left', me.header.getPanel('left', config));
|
||||
me.toolbar = toolbar;
|
||||
me.header.btnSearch.hide();
|
||||
/*var value = Common.localStorage.getBool("ve-settings-quick-print-button", true);
|
||||
Common.Utils.InternalSettings.set("ve-settings-quick-print-button", value);
|
||||
@ -337,7 +338,8 @@ define([
|
||||
const computed_style = window.getComputedStyle(document.body);
|
||||
_intvars.set('toolbar-height-controls', parseInt(computed_style.getPropertyValue("--toolbar-height-controls") || 84));
|
||||
_intvars.set('toolbar-height-normal', _intvars.get('toolbar-height-tabs') + _intvars.get('toolbar-height-controls'));
|
||||
$filemenu.css('top', (Common.UI.LayoutManager.isElementVisible('toolbar') ? _intvars.get('toolbar-height-tabs-top-title') : 0) + _intvars.get('document-title-height'));
|
||||
$filemenu.css('top', (Common.UI.LayoutManager.isElementVisible('toolbar') ? _intvars.get('toolbar-height-tabs') : 0) +
|
||||
(this.appConfig.twoLevelHeader && !this.appConfig.compactHeader ? _intvars.get('document-title-height') : 0));
|
||||
|
||||
this.viewport.vlayout.getItem('toolbar').height = this.toolbar && this.toolbar.isCompact() ?
|
||||
_intvars.get('toolbar-height-compact') : _intvars.get('toolbar-height-normal');
|
||||
|
||||
Reference in New Issue
Block a user