From 9e20de35b1cb060b509683df46d3be9047e36cd3 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 1 May 2007 19:41:52 +0000 Subject: [PATCH] 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 --- src/generic/grid.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index ef02bf6b4e..d5cbe29b1b 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -6905,15 +6905,11 @@ void wxGrid::Refresh(bool eraseb, const wxRect* rect) void wxGrid::OnSize( wxSizeEvent& 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 ) +void wxGrid::OnKeyDown( wxKeyEvent& WXUNUSED(event) ) { if ( m_inOnKeyDown ) {