From fa6067e9e02db21a1d4e7d67bb2a02309ba6533a Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Fri, 12 Oct 2018 09:38:17 +0200 Subject: [PATCH] Added comment to clarify custom intrinsicContentSize --- MacPass/MPCustomFieldTableView.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MacPass/MPCustomFieldTableView.m b/MacPass/MPCustomFieldTableView.m index 512d36aa..4c7d281b 100644 --- a/MacPass/MPCustomFieldTableView.m +++ b/MacPass/MPCustomFieldTableView.m @@ -24,6 +24,9 @@ @implementation MPCustomFieldTableView +/* + on macOS 10.11 and lower, the height is not calculated correctly + */ - (NSSize)intrinsicContentSize { if(@available(macOS 10.12, *)) { return [super intrinsicContentSize]; @@ -32,7 +35,6 @@ return NSMakeSize(-1, self.numberOfRows * self.rowHeight); } return NSMakeSize(-1, -1); - } @end