Slightly simply wxScrollHelperBase::ScrollLayout()

No real changes, just use wxPoint and wxSize instead of intermediate int
variables.
This commit is contained in:
Vadim Zeitlin
2018-10-03 01:12:47 +02:00
parent c0e7bd33bc
commit 20466d045f

View File

@@ -767,10 +767,8 @@ bool wxScrollHelperBase::ScrollLayout()
// If we're the scroll target, take into account the
// virtual size and scrolled position of the window.
int x = 0, y = 0, w = 0, h = 0;
CalcScrolledPosition(0,0, &x,&y);
m_win->GetVirtualSize(&w, &h);
m_win->GetSizer()->SetDimension(x, y, w, h);
m_win->GetSizer()->SetDimension(CalcScrolledPosition(wxPoint(0, 0)),
m_win->GetVirtualSize());
return true;
}