X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/003b64a7badedc5b21ffda7b938a3aacbf7e380e..522f97d64e2c6133e705ee051a0c3500618c081b:/src/common/sizer.cpp diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index a691f6431c..3429e7b01f 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -276,7 +276,7 @@ wxSize wxSizerItem::CalcMin() { // Since the size of the window may change during runtime, we // should use the current minimal/best size. - m_minSize = m_window->GetBestFittingSize(); + m_minSize = m_window->GetEffectiveMinSize(); } return GetMinSizeWithBorder();