Only use wxBU_EXACTFIT for width calculations in wxMSW wxButton.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Feb 2011 12:45:24 +0000 (12:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Feb 2011 12:45:24 +0000 (12:45 +0000)
commit4bf152c5b498705c55a07a827f6b4a8425377ab7
treef721210afca0a62d9d058785267d2eddf7a95f8f
parentf87ddf1834c677a33f0c8d243d580d6d105447ef
Only use wxBU_EXACTFIT for width calculations in wxMSW wxButton.

wxBU_EXACTFIT should affect the width of the button best size but not its
height which should be at least the same as the height of a standard button
even when wxBU_EXACTFIT is specified, otherwise buttons created with it (like
the one in generic wxCollapsiblePane implementation) look completely ugly.

This commit restores the old behaviour which was recently changed by wxButton
sizing code simplifications.

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