wxBitmapButton doesn't need own DoGetBestSize, wxControl's one works (fixes sizing bug)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-10-18 12:38:21 +00:00
parent b1ad1424b9
commit b2b4469be1
4 changed files with 0 additions and 30 deletions

View File

@@ -263,20 +263,6 @@ void wxBitmapButton::OnSetBitmap()
}
}
wxSize wxBitmapButton::DoGetBestSize() const
{
wxSize best;
if (m_bmpNormal.Ok())
{
int border = HasFlag(wxNO_BORDER) ? 4 : 10;
best.x = m_bmpNormal.GetWidth()+border;
best.y = m_bmpNormal.GetHeight()+border;
}
CacheBestSize(best);
return best;
}
bool wxBitmapButton::Enable( bool enable )
{
if ( !wxWindow::Enable(enable) )