From 16747764fb83cfae0042cd1eb2f004d0a4abb0a6 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Thu, 5 Mar 2009 19:20:36 +0000 Subject: [PATCH] Make wxStaticText for OS X Cocoa properly size multiline strings. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/stattext.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/cocoa/stattext.mm b/src/osx/cocoa/stattext.mm index efb6e56343..9134d2ef79 100644 --- a/src/osx/cocoa/stattext.mm +++ b/src/osx/cocoa/stattext.mm @@ -48,7 +48,7 @@ Point bounds; { wxClientDC dc(const_cast(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; -- 2.50.0