git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39823
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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