Backport change to wxGrid::OnSize so both subwindow sizes and

scrollars will be adjusted.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-05-01 19:41:52 +00:00
parent b17e81e0e2
commit 9e20de35b1

View File

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