Make log window in the grid sample expand too

It is too small to show more than a few lines of logs otherwise.
This commit is contained in:
Vadim Zeitlin
2020-08-20 17:06:09 +02:00
parent 4b918966f6
commit eb60684ac7

View File

@@ -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 );