]> git.saurik.com Git - wxWidgets.git/commit
Update the button bezel to account for multi-line labels in wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 4 Nov 2012 23:50:50 +0000 (23:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 4 Nov 2012 23:50:50 +0000 (23:50 +0000)
commitcabc71dee36b8205d20864129dfbf51a673d536d
tree094f559f7f150d5984401c701a3672641473f2cd
parent5af80d3112462332d179fe79dd738cf093c99864
Update the button bezel to account for multi-line labels in wxOSX.

If a button was created using a normal single-line label (including empty one)
and then its label was changed to something multi-line later, its size stayed
wrong in wxOSX as it still used the fixed size bezel used by normal buttons.

Adjust the bezel after each bezel change now to update the size of the button
if necessary.

Closes #12491.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/osx/cocoa/private.h
src/osx/cocoa/button.mm