summaryrefslogtreecommitdiff
path: root/svx
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-07-15 08:52:38 +0200
commit33e4ad909b54de433e7f73a87348505bd3fd6624 (patch)
treefb343c43ebd6b97559c8e1f381cfb5e1620b4f0b /svx
parent34aae062110cbb50e634b3678ccaf4428d3687c9 (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>
Diffstat (limited to 'svx')
-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 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();
}