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:
parent
d833ab988b
commit
a0a817e78b
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue