diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-27 11:43:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-27 20:11:33 +0200 |
commit | 7fd9bd4cdf4ffc03b2280964ef3f7e5917769bbd (patch) | |
tree | 1c0f87f18333c29e6a532e2f5bfed24c127c39a3 /svtools | |
parent | 9054c903b215892198f54f105947b16544a78f01 (diff) |
we want the position of the start of the scrollbar
not its width, but its width and the the width of the corner square
or just take its position if visible
Change-Id: Ideaea789046fb03067501798b5a541985ef75e0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99485
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/brwbox1.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index 5bac96fc1945..eb185380af8a 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -2072,10 +2072,11 @@ 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(); + return tools::Rectangle( Point( 0, GetOutputSizePixel().Height() - nHeight ), - Size( GetOutputSizePixel().Width() - aHScroll->GetSizePixel().Width(), - nHeight ) ); + Size( nEndRight, nHeight ) ); } void BrowseBox::SetMode( BrowserMode nMode ) |