[Libreoffice-commits] core.git: sfx2/source

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Sun Mar 1 22:44:48 UTC 2020


 sfx2/source/sidebar/SidebarController.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit da57c32c5cb27eee38e32d10232b31d459c399df
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri Feb 28 17:02:30 2020 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Mon Mar 2 00:43:20 2020 +0200

    tdf#130348: Add special case for ChartDeck, too
    
    Change-Id: Idf6cc1469f074debfc4351a58826a3a7411391ca
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89722
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    (cherry picked from commit 6a031edca26cadd5917a94de2d3b6a706197a8fc)

diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 20dcdae1cdfb..2e56b5d2b2b8 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -427,7 +427,9 @@ void SidebarController::NotifyResize()
                 // it's the PropertyDeck that really has many panes
                 // that can collapse or expand. For others, limit
                 // the height to something sensible.
-                const sal_Int32 nExtHeight = (msCurrentDeckId == "PropertyDeck" ? 2000 : 600);
+                // tdf#130348: Add special case for ChartDeck, too.
+                const sal_Int32 nExtHeight = (msCurrentDeckId == "PropertyDeck" ? 2000 :
+                                              (msCurrentDeckId == "ChartDeck" ? 1200 : 600));
                 // No TabBar in LOK (use nWidth in full).
                 mpCurrentDeck->setPosSizePixel(nDeckX, 0, nWidth, nExtHeight);
             }


More information about the Libreoffice-commits mailing list