diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-01-20 17:14:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-01-21 10:12:41 +0100 |
commit | 520058bbe9735da18a24986c6e0db59fc2c04415 (patch) | |
tree | 9e5e2d162c4dd41cd3840534222d5ae12b086db4 /svtools/source/brwbox | |
parent | 4e6f0f39854e2a0e6c3ea6e9f5d80b2c9dcab3c6 (diff) |
keep the navigation bar control area the same size with hidden scrollbar
which is the way it historically worked before...
commit 7fd9bd4cdf4ffc03b2280964ef3f7e5917769bbd
Author: Caolán McNamara <caolanm@redhat.com>
Date: Mon Jul 27 11:43:12 2020 +0100
we want the position of the start of the scrollbar
which added a visibility check that we don't actually want as the
navigation bar spreads out in a ugly manner on a gridcontrol with
only a few columns
Change-Id: I9f24937c20dbab40e0d031195aa6e3e527cd52f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109721
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools/source/brwbox')
-rw-r--r-- | svtools/source/brwbox/brwbox1.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index b51b29cc91ad..7fbb0d08797f 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -2119,7 +2119,7 @@ bool BrowseBox::ReserveControlArea(sal_uInt16 nWidth) tools::Rectangle BrowseBox::GetControlArea() const { auto nHeight = aHScroll->GetSizePixel().Height(); - auto nEndRight = aHScroll->IsVisible() ? aHScroll->GetPosPixel().X() : GetOutputSizePixel().Width(); + auto nEndRight = aHScroll->GetPosPixel().X(); return tools::Rectangle( Point( 0, GetOutputSizePixel().Height() - nHeight ), |