do adjust scrollbars in our EVT_SIZE handler now that we turn them off correctly (otherwise scrollbars wouldn't be shown correctly when the grid becomes too small to show its contents entirely after changes in rev 1.410)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-02-17 02:35:50 +00:00
parent 29392c81aa
commit c71b212607

View File

@@ -6903,14 +6903,10 @@ void wxGrid::Refresh(bool eraseb, const wxRect* rect)
}
}
void wxGrid::OnSize( wxSizeEvent& event )
void wxGrid::OnSize(wxSizeEvent& WXUNUSED(event))
{
// position the child windows
CalcWindowSizes();
// don't call CalcDimensions() from here, the base class handles the size
// changes itself
event.Skip();
// update our children window positions and scrollbars
CalcDimensions();
}
void wxGrid::OnKeyDown( wxKeyEvent& event )