vcl/source/app/salvtables.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 00b6dbee14b8cee215eadc847fc4e1407be52390 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Mar 10 21:10:05 2020 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Mar 11 09:56:25 2020 +0100 scroll treeview correctly Change-Id: Ie769b0e4ba984b95378c4e7c418c7e4ba0d7acb0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90307 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits