mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-11 14:20:10 +00:00
Prefer wxFB sizes in bitmap buttons.
This commit is contained in:
parent
2c73f74112
commit
c401e3d24b
@ -101,12 +101,10 @@ wxSize BITMAP_BUTTON::DoGetBestSize() const
|
||||
|
||||
void BITMAP_BUTTON::invalidateBestSize()
|
||||
{
|
||||
#ifdef __WXMAC__
|
||||
// InvalidateBestSize() doesn't appear to work on Mac: DoGetBestSize() is never called.
|
||||
SetMinSize( DoGetBestSize() );
|
||||
#else
|
||||
// Uncomment to override wxFB sizes
|
||||
// SetMinSize( DoGetBestSize() );
|
||||
|
||||
InvalidateBestSize();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user