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:
@@ -766,14 +766,10 @@ GridFrame::GridFrame()
|
|||||||
grid->Bind(wxEVT_CONTEXT_MENU, &GridFrame::OnGridContextMenu, this, grid->GetId());
|
grid->Bind(wxEVT_CONTEXT_MENU, &GridFrame::OnGridContextMenu, this, grid->GetId());
|
||||||
|
|
||||||
wxBoxSizer *topSizer = new wxBoxSizer( wxVERTICAL );
|
wxBoxSizer *topSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
topSizer->Add( grid,
|
topSizer->Add(grid, wxSizerFlags(2).Expand());
|
||||||
1,
|
|
||||||
wxEXPAND );
|
|
||||||
|
|
||||||
#if wxUSE_LOG
|
#if wxUSE_LOG
|
||||||
topSizer->Add( logWin,
|
topSizer->Add(logWin, wxSizerFlags(1).Expand());
|
||||||
0,
|
|
||||||
wxEXPAND );
|
|
||||||
#endif // wxUSE_LOG
|
#endif // wxUSE_LOG
|
||||||
|
|
||||||
SetSizerAndFit( topSizer );
|
SetSizerAndFit( topSizer );
|
||||||
|
Reference in New Issue
Block a user