git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59347
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxClientDC dc(const_cast<wxStaticText*>(this));
wxCoord width, height ;
{
wxClientDC dc(const_cast<wxStaticText*>(this));
wxCoord width, height ;
- dc.GetTextExtent( m_label , &width, &height);
+ dc.GetMultiLineTextExtent( m_label , &width, &height);
// Some labels seem to have their last characters
// stripped out. Adding 4 pixels seems to be enough to fix this.
bounds.h = width+4;
// Some labels seem to have their last characters
// stripped out. Adding 4 pixels seems to be enough to fix this.
bounds.h = width+4;