mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
disabled automatic row height.
The custom attributes tabel view did not render if it was non-visible. Only a resize on the view triggered a display.
This commit is contained in:
@@ -138,7 +138,7 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
||||
NSView *customFieldTableView = self.customFieldsTableView;
|
||||
[self.customFieldsTableView.enclosingScrollView removeFromSuperviewWithoutNeedingDisplay];
|
||||
if (@available(macOS 10.13, *)) {
|
||||
self.customFieldsTableView.usesAutomaticRowHeights = YES;
|
||||
//self.customFieldsTableView.usesAutomaticRowHeights = YES;
|
||||
} else {
|
||||
// Fallback on earlier versions
|
||||
}
|
||||
@@ -158,7 +158,6 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
||||
|
||||
|
||||
|
||||
|
||||
self.customFieldsTableView.backgroundColor = NSColor.clearColor;
|
||||
[self.customFieldsTableView bind:NSContentBinding toObject:_customFieldsController withKeyPath:NSStringFromSelector(@selector(arrangedObjects)) options:nil];
|
||||
self.customFieldsTableView.delegate = _customFieldTableDelegate;
|
||||
@@ -644,6 +643,7 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
||||
|
||||
- (void)_didChangeCurrentItem:(NSNotification *)notificiation {
|
||||
self.showPassword = NO;
|
||||
//self.customFieldsTableView.needsDisplay = YES;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user