From: Vadim Zeitlin Date: Thu, 3 Jan 2013 20:47:18 +0000 (+0000) Subject: Re-lay out the grid sample window after auto-sizing the grid. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/83c0a84c8ccccef034b68b22f406641d33e13081 Re-lay out the grid sample window after auto-sizing the grid. 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 --- diff --git a/samples/grid/griddemo.cpp b/samples/grid/griddemo.cpp index ad85aa1117..35dcee999a 100644 --- a/samples/grid/griddemo.cpp +++ b/samples/grid/griddemo.cpp @@ -992,6 +992,7 @@ void GridFrame::AutoSizeLabelsRow(wxCommandEvent& WXUNUSED(event)) void GridFrame::AutoSizeTable(wxCommandEvent& WXUNUSED(event)) { grid->AutoSize(); + Layout(); }