diff --git a/src/ShuttleGui.cpp b/src/ShuttleGui.cpp index 42d9d1388..42bd79f00 100644 --- a/src/ShuttleGui.cpp +++ b/src/ShuttleGui.cpp @@ -2419,12 +2419,15 @@ void ShuttleGui::AddStandardButtons(long buttons, wxWindow *extra) EndVerticalLay(); } -wxSizerItem * ShuttleGui::AddSpace( int width, int height ) +wxSizerItem * ShuttleGui::AddSpace( int width, int height, int prop ) { if( mShuttleMode != eIsCreating ) return NULL; - SetProportions(0); - return mpSizer->Add( width, height, miProp); + +// SetProportions(0); + // return mpSizer->Add( width, height, miProp); + + return mpSizer->Add( width, height, prop ); } void ShuttleGui::SetMinSize( wxWindow *window, const wxArrayStringEx & items ) diff --git a/src/ShuttleGui.h b/src/ShuttleGui.h index 59a167e44..d8ea8f4e5 100644 --- a/src/ShuttleGui.h +++ b/src/ShuttleGui.h @@ -714,7 +714,7 @@ public: void AddStandardButtons( long buttons = eOkButton | eCancelButton, wxWindow *extra = NULL ); - wxSizerItem * AddSpace( int width, int height ); + wxSizerItem * AddSpace( int width, int height, int prop = 0 ); wxSizerItem * AddSpace( int size ) { return AddSpace( size, size ); }; // Calculate width of a choice control adequate for the items, maybe after