summaryrefslogtreecommitdiffstats
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 15:50:06 +0200
commitc2c2f74e26c8a7da78a8daee4671e1cb14509c12 (patch)
treef3d4e021dcf35bc07ab28fac44386a7a9296f16d
parentResolves: tdf#132739 two style tags where there should be just one (diff)
downloadcore-c2c2f74e26c8a7da78a8daee4671e1cb14509c12.tar.gz
core-c2c2f74e26c8a7da78a8daee4671e1cb14509c12.zip
Resolves: tdf#143795 trigger layout when content changes
Change-Id: I9ec19b55f2b46ac8dd1415f45d5e0368fa52fbfd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120367 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index 28c560fa14be..efb397c44415 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -451,6 +451,11 @@ void SlideBackground::Update()
default:
break;
}
+
+ // Need to do a relayouting, otherwise the panel size is not updated after show / hide controls
+ sfx2::sidebar::Panel* pPanel = dynamic_cast<sfx2::sidebar::Panel*>(GetParent());
+ if (pPanel)
+ pPanel->TriggerDeckLayouting();
}
void SlideBackground::UpdateMarginBox()