summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-13 09:28:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-08-13 13:25:35 +0200
commita334112b44cb1ace8911c93323921510ccd0864e (patch)
treef4b38b3c4973c9cb0e7148dea115c573974817d3 /sd
parent33c96dcef9a729625d091d28db493318b7e21590 (diff)
Resolves: tdf#143795 trigger layout when content changes
Change-Id: I9ec19b55f2b46ac8dd1415f45d5e0368fa52fbfd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120421 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index e225d4548952..97a1672b2920 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -450,6 +450,10 @@ void SlideBackground::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();
}
void SlideBackground::UpdateMarginBox()