Don't make buttons with images too wide in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Feb 2011 22:12:10 +0000 (22:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Feb 2011 22:12:10 +0000 (22:12 +0000)
commit1e43584aa751510ef59ce97ea0a5abad7241365a
tree40999289e510b3fd8c39121b3801afb3a1252893
parentc3d652aeb9db1ada2badcd616fbfcdf802bd9ec2
Don't make buttons with images too wide in wxMSW.

We used to increase the button size to the standard size first and then add
the extra padding the buttons with images. This resulted in too much padding
for the buttons with short text labels and images.

Instead, add the padding for the image first and only then increase the button
size to the standard one if still needed.

See #12924.

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