]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/button_osx.cpp
A call to wxPopupWindow::Show shouldn't automatically cause the popup window to steal...
[wxWidgets.git] / src / osx / button_osx.cpp
index b61d2963842926c0824a1cfad00888ebfb7614a8..2fef7837da5d6f14205874287c05f04d2eddd496 100644 (file)
@@ -104,11 +104,13 @@ void wxButton::DoSetBitmap(const wxBitmap& bitmap, State which)
         if ( bi )
             bi->SetPressedBitmap(bitmap);
     }
+    InvalidateBestSize();
 }
 
 void wxButton::DoSetBitmapPosition(wxDirection dir)
 {
     m_peer->SetBitmapPosition(dir);
+    InvalidateBestSize();
 }
 
 wxWindow *wxButton::SetDefault()