From 95ba86d70672363f1fb2d8f8c5a5a64ff20b39cc Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 16 Apr 2005 18:57:23 +0000 Subject: [PATCH] Improved spacing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/propdlg.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/generic/propdlg.cpp b/src/generic/propdlg.cpp index ecbaf34ed3..604e6f8155 100644 --- a/src/generic/propdlg.cpp +++ b/src/generic/propdlg.cpp @@ -56,7 +56,7 @@ bool wxPropertySheetDialog::Create(wxWindow* parent, wxWindowID id, const wxStri // This gives more space around the edges m_innerSizer = new wxBoxSizer( wxVERTICAL ); - int extraSpace = 5; + int extraSpace = 2; #if defined(__SMARTPHONE__) || defined(__POCKETPC__) extraSpace=0; #endif @@ -79,6 +79,7 @@ void wxPropertySheetDialog::LayoutDialog() { #if !defined(__SMARTPHONE__) && !defined(__POCKETPC__) GetSizer()->Fit(this); + GetSizer()->SetSizeHints(this); Centre(wxBOTH); #endif #if defined(__SMARTPHONE__) @@ -99,7 +100,8 @@ void wxPropertySheetDialog::CreateButtons(int flags) // Do nothing #else wxSizer* sizer = CreateButtonSizer(flags); - m_innerSizer->Add( sizer, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5); + m_innerSizer->Add( sizer, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxRIGHT, 2); + m_innerSizer->AddSpacer(2); #endif } -- 2.47.2