]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/listbox.mm
Add missing WXK constants for the control keys
[wxWidgets.git] / 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