Prefer wxFB sizes in bitmap buttons.

This commit is contained in:
Alex Shvartzkop 2024-05-27 00:05:25 +03:00
parent 2c73f74112
commit c401e3d24b
1 changed files with 3 additions and 5 deletions

View File

@ -101,12 +101,10 @@ wxSize BITMAP_BUTTON::DoGetBestSize() const
void BITMAP_BUTTON::invalidateBestSize() void BITMAP_BUTTON::invalidateBestSize()
{ {
#ifdef __WXMAC__ // Uncomment to override wxFB sizes
// InvalidateBestSize() doesn't appear to work on Mac: DoGetBestSize() is never called. // SetMinSize( DoGetBestSize() );
SetMinSize( DoGetBestSize() );
#else
InvalidateBestSize(); InvalidateBestSize();
#endif
} }