Invalidate best size when the bitmap or bitmap position changes. Add GetBitmapMargins

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2010-03-01 23:20:35 +00:00
parent 9f88f9fbf0
commit 06bb8d923d
5 changed files with 8 additions and 1 deletions

View File

@@ -664,6 +664,7 @@ void wxButton::DoSetBitmapPosition(wxDirection dir)
}
gtk_button_set_image_position(GTK_BUTTON(m_widget), gtkpos);
InvalidateBestSize();
}
#endif // GTK+ 2.10+
}