From eb60684ac7917af960b0bae21dbd8025ce8d2c57 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 20 Aug 2020 17:06:09 +0200 Subject: [PATCH] Make log window in the grid sample expand too It is too small to show more than a few lines of logs otherwise. --- samples/grid/griddemo.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/samples/grid/griddemo.cpp b/samples/grid/griddemo.cpp index 46ed8d5e42..2d8f60bc13 100644 --- a/samples/grid/griddemo.cpp +++ b/samples/grid/griddemo.cpp @@ -766,14 +766,10 @@ GridFrame::GridFrame() grid->Bind(wxEVT_CONTEXT_MENU, &GridFrame::OnGridContextMenu, this, grid->GetId()); wxBoxSizer *topSizer = new wxBoxSizer( wxVERTICAL ); - topSizer->Add( grid, - 1, - wxEXPAND ); + topSizer->Add(grid, wxSizerFlags(2).Expand()); #if wxUSE_LOG - topSizer->Add( logWin, - 0, - wxEXPAND ); + topSizer->Add(logWin, wxSizerFlags(1).Expand()); #endif // wxUSE_LOG SetSizerAndFit( topSizer );