Slightly simply wxScrollHelperBase::ScrollLayout()
No real changes, just use wxPoint and wxSize instead of intermediate int variables.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user