]> git.saurik.com Git - wxWidgets.git/commitdiff
use global NSLayoutManager
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 29 Aug 2012 12:16:36 +0000 (12:16 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 29 Aug 2012 12:16:36 +0000 (12:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/listbox.mm

index b30cb3642e066cbfbb50d66f978341acecb7d832..199363d24787c89f2c8ec66e0bb9713523e04fcc 100644 (file)
@@ -321,10 +321,7 @@ protected:
     while (columnIndex--)
         [[(NSTableColumn *)[tableColumns objectAtIndex:columnIndex] dataCell] setFont:aFont];
 
-    // todo introduce a common NSLayoutManager instance for all and use new method
-#ifndef __LP64__
-    [self setRowHeight:[aFont defaultLineHeightForFont]+2];
-#endif
+    [self setRowHeight:[gNSLayoutManager defaultLineHeightForFont:aFont]+2];
 }
 
 - (void) setControlSize:(NSControlSize) size