ScrollToAbsPos is better than ScrollOutputArea

ScrollOutputArea has embedded flickering Update calls in it

Change-Id: I42f42c4a2c9057d3f1689a20244f9f070931f43b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90777
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2020-03-20 09:51:40 +00:00
parent d833ab988b
commit a0a817e78b

View file

@ -4519,9 +4519,7 @@ public:
virtual void vadjustment_set_value(int nValue) override
{
ScrollBar* pVertScrollBar = m_xTreeView->GetVScroll();
auto nDelta = pVertScrollBar->GetThumbPos() - nValue;
m_xTreeView->ScrollOutputArea(nDelta);
m_xTreeView->ScrollToAbsPos(nValue);
}
virtual ~SalInstanceTreeView() override