mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 22:52:26 +00:00
Added comment to clarify custom intrinsicContentSize
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user