svx/source/sidebar/area/AreaPropertyPanelBase.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
New commits: commit 33e4ad909b54de433e7f73a87348505bd3fd6624 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Wed Jul 14 16:10:03 2021 +0200 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Thu Jul 15 08:52:38 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 <jenkinscollaboraoff...@gmail.com> Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx index a52dfd10d245..016cb4784092 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(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits