Fix toolbar size after changing theme

This commit is contained in:
Julia.Radzhabova
2025-05-29 22:27:38 +03:00
parent ff1ef96cc2
commit c8ad4c8358
5 changed files with 26 additions and 15 deletions

View File

@ -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');