Added comment to clarify custom intrinsicContentSize

This commit is contained in:
Michael Starke
2018-10-12 09:38:17 +02:00
parent 2b1f0ccbc5
commit fa6067e9e0

View File

@@ -24,6 +24,9 @@
@implementation MPCustomFieldTableView @implementation MPCustomFieldTableView
/*
on macOS 10.11 and lower, the height is not calculated correctly
*/
- (NSSize)intrinsicContentSize { - (NSSize)intrinsicContentSize {
if(@available(macOS 10.12, *)) { if(@available(macOS 10.12, *)) {
return [super intrinsicContentSize]; return [super intrinsicContentSize];
@@ -32,7 +35,6 @@
return NSMakeSize(-1, self.numberOfRows * self.rowHeight); return NSMakeSize(-1, self.numberOfRows * self.rowHeight);
} }
return NSMakeSize(-1, -1); return NSMakeSize(-1, -1);
} }
@end @end