svx/source/sidebar/area/AreaPropertyPanelBase.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
New commits: commit b0697a0501d7761a8b40cd03c6ae3c77b7d5e494 Author: Szymon Kłos <[email protected]> AuthorDate: Wed Jul 14 16:10:03 2021 +0200 Commit: Szymon Kłos <[email protected]> CommitDate: Wed Aug 18 13:17:51 2021 +0200 jsdialog: sidebar: do relayouting not too often To avoid jumping in Online avoid not needed relayouting. Change-Id: I4a59a9aa077de60ffd0486bb843fd2ce5b4174d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118936 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Szymon Kłos <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120628 Tested-by: Szymon Kłos <[email protected]> diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx index 8234ee9c4dbf..c04eb8cc8ebe 100644 --- a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx +++ b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx @@ -438,7 +438,7 @@ IMPL_LINK_NOARG(AreaPropertyPanelBase, SelectFillTypeHdl, weld::ComboBox&, void) meLastXFS = static_cast<sal_uInt16>(nPos); - if (m_pPanel) + if (m_pPanel && !comphelper::LibreOfficeKit::isActive()) m_pPanel->TriggerDeckLayouting(); } @@ -597,7 +597,7 @@ void AreaPropertyPanelBase::SelectFillAttrHdl_Impl() break; } } - if (m_pPanel) + if (m_pPanel && !comphelper::LibreOfficeKit::isActive()) m_pPanel->TriggerDeckLayouting(); } @@ -853,7 +853,7 @@ void AreaPropertyPanelBase::updateFillStyle(bool bDisabled, bool bDefaultOrSet, mxToolBoxColor->hide(); meLastXFS = static_cast<sal_uInt16>(-1); mpStyleItem.reset(); - if (m_pPanel) + if (m_pPanel && !comphelper::LibreOfficeKit::isActive()) m_pPanel->TriggerDeckLayouting(); } @@ -894,7 +894,7 @@ void AreaPropertyPanelBase::updateFillGradient(bool bDisabled, bool bDefaultOrSe mxLbFillGradTo->SetNoSelection(); } } - if (m_pPanel) + if (m_pPanel && !comphelper::LibreOfficeKit::isActive()) m_pPanel->TriggerDeckLayouting(); } @@ -927,7 +927,7 @@ void AreaPropertyPanelBase::updateFillHatch(bool bDisabled, bool bDefaultOrSet, mxLbFillAttr->set_active(-1); } } - if (m_pPanel) + if (m_pPanel && !comphelper::LibreOfficeKit::isActive()) m_pPanel->TriggerDeckLayouting(); } @@ -946,7 +946,7 @@ void AreaPropertyPanelBase::updateFillColor(bool bDefaultOrSet, const SfxPoolIte mxLbFillType->set_active(SOLID); Update(); } - if (m_pPanel) + if (m_pPanel && !comphelper::LibreOfficeKit::isActive()) m_pPanel->TriggerDeckLayouting(); } @@ -981,7 +981,7 @@ void AreaPropertyPanelBase::updateFillBitmap(bool bDisabled, bool bDefaultOrSet, mxLbFillAttr->set_active(-1); } } - if (m_pPanel) + if (m_pPanel && !comphelper::LibreOfficeKit::isActive()) m_pPanel->TriggerDeckLayouting(); } @@ -1249,7 +1249,7 @@ void AreaPropertyPanelBase::Update() OSL_ENSURE(false, "Non supported FillType (!)"); break; } - if (m_pPanel) + if (m_pPanel && !comphelper::LibreOfficeKit::isActive()) m_pPanel->TriggerDeckLayouting(); }
