X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b4354db179f5b9f3107cc532bb5232deccab90d0..f239a20092359e3c914adb79bd39f3f5d2b2e06f:/src/osx/tglbtn_osx.cpp?ds=inline diff --git a/src/osx/tglbtn_osx.cpp b/src/osx/tglbtn_osx.cpp index 8a5e348bdc..5eb31a43bc 100644 --- a/src/osx/tglbtn_osx.cpp +++ b/src/osx/tglbtn_osx.cpp @@ -76,18 +76,6 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id, return TRUE; } -wxSize wxToggleButton::DoGetBestSize() const -{ - int wBtn = 70 ; - int hBtn = 20 ; - - int lBtn = m_label.Length() * 8 + 12 ; - if (lBtn > wBtn) - wBtn = lBtn; - - return wxSize ( wBtn , hBtn ) ; -} - void wxToggleButton::SetValue(bool val) { GetPeer()->SetValue( val ) ; @@ -143,17 +131,5 @@ bool wxBitmapToggleButton::Create(wxWindow *parent, wxWindowID id, return TRUE; } -wxSize wxBitmapToggleButton::DoGetBestSize() const -{ - if (!GetBitmap().IsOk()) - return wxSize(20,20); - - wxSize best; - best.x = GetBitmap().GetWidth() + 2 * m_marginX; - best.y = GetBitmap().GetHeight() + 2 * m_marginY; - - return best; -} - #endif // wxUSE_TOGGLEBTN