]> git.saurik.com Git - wxWidgets.git/commitdiff
Minor visual enhancement in the combobox page of the widgets sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Apr 2013 19:41:07 +0000 (19:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Apr 2013 19:41:07 +0000 (19:41 +0000)
Expand the lower static box to align it with the upper one, otherwise they
look really ugly, especially under Mac.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/widgets/combobox.cpp

index 7f1bf88a2f47b086d57ed1fa89104443a2d0c010..6ab44a71099f5c00d555cd0024dde4c9751c1a49 100644 (file)
@@ -298,7 +298,7 @@ void ComboboxWidgetsPage::CreateContent()
     wxSizer *sizerLeft = new wxBoxSizer(wxVERTICAL);
     sizerLeft->Add(sizerLeftTop);
     sizerLeft->AddSpacer(10);
-    sizerLeft->Add(sizerLeftBottom);
+    sizerLeft->Add(sizerLeftBottom, wxSizerFlags().Expand());
 
     // middle pane
     wxStaticBox *box2 = new wxStaticBox(this, wxID_ANY,