X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9a4f2295344414e2ee4e3ec27fa5292918dff27..eea4d01c65f9b29baa1193db762b4c6b8144af24:/src/osx/iphone/button.mm diff --git a/src/osx/iphone/button.mm b/src/osx/iphone/button.mm index e9df18bb46..e2afa1c0cb 100644 --- a/src/osx/iphone/button.mm +++ b/src/osx/iphone/button.mm @@ -23,39 +23,6 @@ #include "wx/osx/private.h" -wxSize wxButton::DoGetBestSize() const -{ - if ( GetId() == wxID_HELP ) - return wxSize( 18 , 18 ) ; - - wxSize sz = GetDefaultSize() ; - - wxRect r ; - - GetPeer()->GetBestRect(&r); - - if ( r.GetWidth() == 0 && r.GetHeight() == 0 ) - { - } - sz.x = r.GetWidth(); - sz.y = r.GetHeight(); - - int wBtn = 72; - - if ((wBtn > sz.x) || ( GetWindowStyle() & wxBU_EXACTFIT)) - sz.x = wBtn; - - return sz ; -} - -wxSize wxButton::GetDefaultSize() -{ - int wBtn = 72 ; - int hBtn = 35 ; - - return wxSize(wBtn, hBtn); -} - @implementation wxUIButton + (void)initialize