summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2020-02-28 17:02:30 +0200
committerAshod Nakashian <ashnakash@gmail.com>2020-02-29 18:25:02 +0100
commit6a031edca26cadd5917a94de2d3b6a706197a8fc (patch)
tree5e79af8b1c7d353cd55a65ee919ec9928989c1ee /sfx2
parent31b2a9b2c17f7dbf6c2ef4998c9d192ca5c70f98 (diff)
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@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 6f8d633f7914..c885066ef5c9 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -440,7 +440,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);
}