git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47331
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Create();
SetInitialSize(size);
+ CalcDimensions();
return true;
}
void wxGrid::OnSize(wxSizeEvent& WXUNUSED(event))
{
- // update our children window positions and scrollbars
- CalcDimensions();
+ if (m_targetWindow != this) // check whether initialisation has been done
+ {
+ // update our children window positions and scrollbars
+ CalcDimensions();
+ }
}
void wxGrid::OnKeyDown( wxKeyEvent& event )