From b3f1734fa0349519bb097f8be62bad0b76b80983 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 16 Jul 2006 18:29:43 +0000 Subject: [PATCH] min size of an empty sizer should be (0, 0) and not (10, 10) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/sizer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index 6038dcf18f..02ca47f8f8 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -1153,7 +1153,7 @@ wxSize wxGridSizer::CalcMin() { int nrows, ncols; if ( CalcRowsCols(nrows, ncols) == 0 ) - return wxSize(10, 10); + return wxSize(); // Find the max width and height for any component int w = 0; @@ -1278,7 +1278,7 @@ wxSize wxFlexGridSizer::CalcMin() // Number of rows/columns can change as items are added or removed. if ( !CalcRowsCols(nrows, ncols) ) - return wxSize(10, 10); + return wxSize(); m_rowHeights.SetCount(nrows); m_colWidths.SetCount(ncols); @@ -1610,7 +1610,7 @@ void wxBoxSizer::RecalcSizes() wxSize wxBoxSizer::CalcMin() { if (m_children.GetCount() == 0) - return wxSize(10,10); + return wxSize(); m_stretchable = 0; m_minWidth = 0; -- 2.47.2