use global NSLayoutManager

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2012-08-29 12:16:36 +00:00
parent befe64edb4
commit 8556919437

View File

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