[Libreoffice-commits] core.git: Branch 'libreoffice-7-2' - sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Aug 14 16:34:35 UTC 2021
sw/source/uibase/sidebar/PageStylesPanel.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 3c2ba16ecdcb5584fbb857d92ce5643db867be18
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Aug 13 09:44:09 2021 +0100
Commit: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Sat Aug 14 18:33:58 2021 +0200
tdf#139811 trigger layout when content changes
in writer styles panel of page deck which is similar to the draw case
of tdf#143795. Doing this always in PanelLayout::queue_resize might
make the most sense rather than these manual triggers, but do it this
way initially for a safe backport.
Change-Id: I4bd2e9cb9d52b66a73cd0615406052e19e6e8b51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120368
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
diff --git a/sw/source/uibase/sidebar/PageStylesPanel.cxx b/sw/source/uibase/sidebar/PageStylesPanel.cxx
index b514c628f4bf..4a904919d0ba 100644
--- a/sw/source/uibase/sidebar/PageStylesPanel.cxx
+++ b/sw/source/uibase/sidebar/PageStylesPanel.cxx
@@ -28,6 +28,7 @@
#include <svx/itemwin.hxx>
#include <svx/SvxNumOptionsTabPageHelper.hxx>
#include "PageStylesPanel.hxx"
+#include <sfx2/sidebar/Panel.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/objsh.hxx>
@@ -237,6 +238,10 @@ void PageStylesPanel::Update()
default:
break;
}
+
+ // Need to do a relayouting, otherwise the panel size is not updated after show / hide controls
+ if (m_pPanel)
+ m_pPanel->TriggerDeckLayouting();
}
Color const & PageStylesPanel::GetColorSetOrDefault()
More information about the Libreoffice-commits
mailing list