best size taking into account borders
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
78727daa23
commit
d5375d25c7
@ -78,6 +78,9 @@ wxSize wxStaticText::DoGetBestSize() const
|
|||||||
}
|
}
|
||||||
if ( m_label.Length() == 0 )
|
if ( m_label.Length() == 0 )
|
||||||
bounds.h = 0 ;
|
bounds.h = 0 ;
|
||||||
|
|
||||||
|
bounds.h += MacGetLeftBorderSize() + MacGetRightBorderSize() ;
|
||||||
|
bounds.v += MacGetTopBorderSize() + MacGetBottomBorderSize() ;
|
||||||
return wxSize(bounds.h, bounds.v);
|
return wxSize(bounds.h, bounds.v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user