From 35a68ef4ce7f5763a2a9f2d3dc101d2b73ff7fb2 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Wed, 27 May 2015 18:13:24 +0400 Subject: [PATCH] Reduce height of frame in DND sample Instead of moving the frame up every time to be able to reach the dragging section at the bottom, change the sizer proportion of the log control in the middle to reduce the frame's height. --- samples/dnd/dnd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/dnd/dnd.cpp b/samples/dnd/dnd.cpp index cf9762240a..58d0e23224 100644 --- a/samples/dnd/dnd.cpp +++ b/samples/dnd/dnd.cpp @@ -1050,7 +1050,7 @@ DnDFrame::DnDFrame() wxBoxSizer *sizer = new wxBoxSizer( wxVERTICAL ); sizer->Add(sizer_top, 1, wxEXPAND ); #if wxUSE_LOG - sizer->Add(m_ctrlLog, 2, wxEXPAND); + sizer->Add(m_ctrlLog, 1, wxEXPAND); sizer->SetItemMinSize(m_ctrlLog, 450, 200); #endif // wxUSE_LOG sizer->AddSpacer(50);