fixing height for buttons with different variants

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-10-21 18:13:50 +00:00
parent b724d57fc7
commit c4dded970b

View File

@@ -194,7 +194,8 @@ wxSize wxButton::DoGetBestSize() const
else
{
wBtn = bestsize.right - bestsize.left ;
sz.y = bestsize.bottom - bestsize.top ;
// non 'normal' window variants don't return the correct height
// sz.y = bestsize.bottom - bestsize.top ;
}
if ((wBtn > sz.x) || ( GetWindowStyle() & wxBU_EXACTFIT))