summaryrefslogtreecommitdiff
path: root/svx/source/sidebar
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-07-14 16:10:03 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2021-08-18 13:17:51 +0200
commitb0697a0501d7761a8b40cd03c6ae3c77b7d5e494 (patch)
tree3a3f9b27741e7fb5d8302fde1e0cb7af24c9eaed /svx/source/sidebar
parent88bf1749f1eb7322106da1254e349f51f5df0df5 (diff)
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 <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120628 Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r--svx/source/sidebar/area/AreaPropertyPanelBase.cxx16
1 files changed, 8 insertions, 8 deletions
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();
}