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:
@@ -619,8 +619,10 @@ wxSize wxBitmapButton::DoGetBestSize() const
|
|||||||
// them and it just makes them appear larger than needed
|
// them and it just makes them appear larger than needed
|
||||||
if ( !HasFlag(wxBORDER_NONE) )
|
if ( !HasFlag(wxBORDER_NONE) )
|
||||||
{
|
{
|
||||||
marginH = margins.cxLeftWidth + margins.cxRightWidth;
|
// we need 2 extra pixels for the focus rectangle, without them
|
||||||
marginV = margins.cyTopHeight + margins.cyBottomHeight;
|
// it's overwritten by the bitmap itself
|
||||||
|
marginH = margins.cxLeftWidth + margins.cxRightWidth + 2;
|
||||||
|
marginV = margins.cyTopHeight + margins.cyBottomHeight + 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user