Restore height tweaking in wxMSWButton::GetFittingSize().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Feb 2011 12:47:48 +0000 (12:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Feb 2011 12:47:48 +0000 (12:47 +0000)
commit46e3b70f200c75afe308cc10123e513cd0227265
treed01ca311c31a17a41e8f3d2fa34ce1aec232d50e
parent98977bf454c66de733241ba22248ca9e9e185759
Restore height tweaking in wxMSWButton::GetFittingSize().

The change of r66893 was wrong, we do need to adjust the button height here
because the increase to standard height is not enough if we use bigger fonts
that require making taller buttons.

The real problem was the use of EDIT_HEIGHT_FROM_CHAR_HEIGHT() which added too
much to the height, so replace it with something based on the actual font
height. This is still arbitrary but slightly better.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/button.cpp