Don't increase button height in wxMSWButton::GetFittingSize().
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Feb 2011 22:12:16 +0000 (22:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Feb 2011 22:12:16 +0000 (22:12 +0000)
commit738764c0e69c432b6bd20a2a15bd514d512fa09e
tree150c983a20cf267fd40744ff855670e616f5bdd9
parent1e43584aa751510ef59ce97ea0a5abad7241365a
Don't increase button height in wxMSWButton::GetFittingSize().

This is unnecessary and resulted in too high buttons in some cases for buttons
with images. As we increase the button height to at least the standard value
later in all code using function anyhow, it's not necessary to do anything
with the height inside it.

Now the buttons with an image get the same height whether they have the text
or not.

This change also gets rid of (completely arbitrary) decision to use 11/10 of
the label height when computing the fitting button size and it's always nice
to get rid of dirty hacks like this.

Closes #12924.

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