diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 2ea515ae00..8f3ebf7cd8 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -5183,13 +5183,13 @@ void wxDataViewCtrl::OnSize( wxSizeEvent &WXUNUSED(event) ) Layout(); - AdjustScrollbars(); - // Update the last column size to take all the available space. Note that // this must be done after calling Layout() to update m_clientArea size. if ( m_clientArea && GetColumnCount() ) m_clientArea->UpdateColumnSizes(); + AdjustScrollbars(); + // We must redraw the headers if their height changed. Normally this // shouldn't happen as the control shouldn't let itself be resized beneath // its minimal height but avoid the display artefacts that appear if it