[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - sd/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 13 13:50:41 UTC 2021


 sd/source/ui/sidebar/SlideBackground.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit c2c2f74e26c8a7da78a8daee4671e1cb14509c12
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Aug 13 09:28:38 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Aug 13 15:50:06 2021 +0200

    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 at redhat.com>

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()


More information about the Libreoffice-commits mailing list