]> git.saurik.com Git - wxWidgets.git/commitdiff
Make wxStaticText for OS X Cocoa properly size multiline strings.
authorKevin Ollivier <kevino@theolliviers.com>
Thu, 5 Mar 2009 19:20:36 +0000 (19:20 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Thu, 5 Mar 2009 19:20:36 +0000 (19:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/stattext.mm

index efb6e563439674fca253c04d628565590cc64e8e..9134d2ef7960f8a9bc9846e72d93a53bad679744 100644 (file)
@@ -48,7 +48,7 @@ Point bounds;
     {
         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;