summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-13 09:44:09 +0100
committerAndras Timar <andras.timar@collabora.com>2021-08-24 14:50:51 +0200
commit66d4c0fac3a8a67f8fdeca2b54a2c9beef265b62 (patch)
tree8102cea99a5425a5d467a552d2a253e64642ea8e /sw
parentec10ab3bf4bb4abf913527e5b96fb2eeb94ea15f (diff)
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/+/120369 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/sidebar/PageStylesPanel.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/uibase/sidebar/PageStylesPanel.cxx b/sw/source/uibase/sidebar/PageStylesPanel.cxx
index 2659fc39dda1..2d7d20a8b385 100644
--- a/sw/source/uibase/sidebar/PageStylesPanel.cxx
+++ b/sw/source/uibase/sidebar/PageStylesPanel.cxx
@@ -28,6 +28,7 @@
#include <svx/xbtmpit.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()