diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-03-10 21:10:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-03-11 09:56:25 +0100 |
commit | 00b6dbee14b8cee215eadc847fc4e1407be52390 (patch) | |
tree | a9fed0fe7a8b7d8106f9817ec2bb68c700e0e4a5 | |
parent | 4983e10459d1b1dcf53fbecafc37b1d9dc13f382 (diff) |
scroll treeview correctly
Change-Id: Ie769b0e4ba984b95378c4e7c418c7e4ba0d7acb0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90307
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/source/app/salvtables.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 7fc78bf5ef0b..0a53f050f1aa 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -4517,10 +4517,11 @@ public: return pVertScrollBar->GetThumbPos(); } - virtual void vadjustment_set_value(int value) override + virtual void vadjustment_set_value(int nValue) override { ScrollBar* pVertScrollBar = m_xTreeView->GetVScroll(); - pVertScrollBar->SetThumbPos(value); + auto nDelta = pVertScrollBar->GetThumbPos() - nValue; + m_xTreeView->ScrollOutputArea(nDelta); } virtual ~SalInstanceTreeView() override |