]> git.saurik.com Git - wxWidgets.git/commitdiff
Re-lay out the grid sample window after auto-sizing the grid.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 3 Jan 2013 20:47:18 +0000 (20:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 3 Jan 2013 20:47:18 +0000 (20:47 +0000)
Changing the size of the grid without updating the sizer resulted in
overlapping windows and a mess on the display.

Closes #14948.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/grid/griddemo.cpp

index ad85aa111775d95c6b56dd71a7862439d5bdf21b..35dcee999ac8921d2758a873bf7fb64b57741af3 100644 (file)
@@ -992,6 +992,7 @@ void GridFrame::AutoSizeLabelsRow(wxCommandEvent& WXUNUSED(event))
 void GridFrame::AutoSizeTable(wxCommandEvent& WXUNUSED(event))
 {
     grid->AutoSize();
 void GridFrame::AutoSizeTable(wxCommandEvent& WXUNUSED(event))
 {
     grid->AutoSize();
+    Layout();
 }
 
 
 }