summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-10-13 10:51:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-10-13 13:54:05 +0200
commitf21f3d094cfb495c89dfb0a23ecb061ef1a2178e (patch)
tree63ab4928e2f46af7dcc461e5863922dda46aabb1
parenta41cf57c1eb4cabe5afc1a45d6fe535dbb935217 (diff)
VclScrolledWindow vertical scrollbar one pixel too far to the left
Change-Id: I6d9afb87b8d99e3c622b9d69fbfa88528adadb81 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104228 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/window/layout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index ea9a0bb7f064..39fa631e8bd4 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -1932,7 +1932,7 @@ void VclScrolledWindow::doSetAllocation(const Size &rAllocation, bool bRetryOnFa
if (m_pVScroll->IsVisible())
{
- Point aScrollPos(rAllocation.Width() - nScrollBarWidth - 2, 1);
+ Point aScrollPos(rAllocation.Width() - nScrollBarWidth - 1, 1);
Size aScrollSize(nScrollBarWidth, rAllocation.Height() - 2);
if (bBothVisible)
aScrollSize.AdjustHeight(-nScrollBarHeight);