]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sizer.cpp
Change wxBoxSizer::AddSpacer() to only add space in sizer direction.
[wxWidgets.git] / src / common / sizer.cpp
index 01180b5374bb716b31f4e1e46835688ef8402ce2..1325015a264bce0f1e81952203aded91c80ad805 100644 (file)
@@ -1982,6 +1982,11 @@ void wxFlexGridSizer::RemoveGrowableRow( size_t idx )
 // wxBoxSizer
 //---------------------------------------------------------------------------
 
+wxSizerItem *wxBoxSizer::AddSpacer(int size)
+{
+    return IsVertical() ? Add(0, size) : Add(size, 0);
+}
+
 void wxBoxSizer::RecalcSizes()
 {
     if ( m_children.empty() )