added back 2 extra pixels for the best size under XP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e59c2b2da3
commit
aceeebce6d
@ -619,8 +619,10 @@ wxSize wxBitmapButton::DoGetBestSize() const
|
||||
// them and it just makes them appear larger than needed
|
||||
if ( !HasFlag(wxBORDER_NONE) )
|
||||
{
|
||||
marginH = margins.cxLeftWidth + margins.cxRightWidth;
|
||||
marginV = margins.cyTopHeight + margins.cyBottomHeight;
|
||||
// we need 2 extra pixels for the focus rectangle, without them
|
||||
// it's overwritten by the bitmap itself
|
||||
marginH = margins.cxLeftWidth + margins.cxRightWidth + 2;
|
||||
marginV = margins.cyTopHeight + margins.cyBottomHeight + 2;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user