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()
|
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue