diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2019-02-01 10:56:46 -0500 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-26 20:30:36 +0200 |
commit | 53644c6d62002879431c36b9da5f6771e5234992 (patch) | |
tree | ff5d6494599d4f0355f1698ec604cbcbc6c017a8 /include/sfx2/sidebar/Deck.hxx | |
parent | d13e036ddc56bfdc9decccfa58e2e2b57eac765b (diff) |
sfx2: LOK: resize the sidebar after layouting to avoid scrollbars
By resizing the deck we ensure that if the contents do not fit
in the existing height, they will after we expand to the minimum
height. Also, the minimum height is now the correct one.
This prevents seeing vertical scrollbar in LOK, which is very
slow and unfriendly, instead renders the full sidebar and lets
the client scroll, if necessary.
Change-Id: Idc2a622a65074b7afb26263624f2df0b5968f40d
Reviewed-on: https://gerrit.libreoffice.org/73523
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2/sidebar/Deck.hxx')
-rw-r--r-- | include/sfx2/sidebar/Deck.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sfx2/sidebar/Deck.hxx b/include/sfx2/sidebar/Deck.hxx index 410f17a22e82..5a3dabe7804a 100644 --- a/include/sfx2/sidebar/Deck.hxx +++ b/include/sfx2/sidebar/Deck.hxx @@ -82,6 +82,9 @@ public: }; private: + void RequestLayoutInternal(); + +private: const OUString msId; sal_Int32 mnMinimalWidth; sal_Int32 mnMinimalHeight; |