Fix for clipped 16x16 bitmap buttons
This commit is contained in:
parent
3d8f9517f3
commit
3d4da0ceeb
@ -66,6 +66,10 @@ wxSize wxBitmapButton::DoGetBestSize() const
|
||||
|
||||
if ( GetBitmapLabel().IsOk() )
|
||||
{
|
||||
// Hack to stop 16x16 bitmap being clipped
|
||||
if (GetBitmapLabel().GetScaledSize().x == 16)
|
||||
best += wxSize(4,0);
|
||||
|
||||
best += GetBitmapLabel().GetScaledSize();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user