]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
applying patch, fixes #10523
[wxWidgets.git] / src / msw / control.cpp
index 5c1740dfad2979409fd36c46fb5d43605d1130f7..b3e4f5b2ec66808313ca218bd35a6bb9fabad025 100644 (file)
@@ -245,6 +245,9 @@ WXDWORD wxControl::MSWGetStyle(long style, WXDWORD *exstyle) const
 
 wxSize wxControl::DoGetBestSize() const
 {
+    if (m_windowSizer)
+       return wxControlBase::DoGetBestSize();
+       
     return wxSize(DEFAULT_ITEM_WIDTH, DEFAULT_ITEM_HEIGHT);
 }