mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 05:52:58 +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;
|
NSView *customFieldTableView = self.customFieldsTableView;
|
||||||
[self.customFieldsTableView.enclosingScrollView removeFromSuperviewWithoutNeedingDisplay];
|
[self.customFieldsTableView.enclosingScrollView removeFromSuperviewWithoutNeedingDisplay];
|
||||||
if (@available(macOS 10.13, *)) {
|
if (@available(macOS 10.13, *)) {
|
||||||
self.customFieldsTableView.usesAutomaticRowHeights = YES;
|
//self.customFieldsTableView.usesAutomaticRowHeights = YES;
|
||||||
} else {
|
} else {
|
||||||
// Fallback on earlier versions
|
// Fallback on earlier versions
|
||||||
}
|
}
|
||||||
@@ -158,7 +158,6 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
self.customFieldsTableView.backgroundColor = NSColor.clearColor;
|
self.customFieldsTableView.backgroundColor = NSColor.clearColor;
|
||||||
[self.customFieldsTableView bind:NSContentBinding toObject:_customFieldsController withKeyPath:NSStringFromSelector(@selector(arrangedObjects)) options:nil];
|
[self.customFieldsTableView bind:NSContentBinding toObject:_customFieldsController withKeyPath:NSStringFromSelector(@selector(arrangedObjects)) options:nil];
|
||||||
self.customFieldsTableView.delegate = _customFieldTableDelegate;
|
self.customFieldsTableView.delegate = _customFieldTableDelegate;
|
||||||
@@ -644,6 +643,7 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
|||||||
|
|
||||||
- (void)_didChangeCurrentItem:(NSNotification *)notificiation {
|
- (void)_didChangeCurrentItem:(NSNotification *)notificiation {
|
||||||
self.showPassword = NO;
|
self.showPassword = NO;
|
||||||
|
//self.customFieldsTableView.needsDisplay = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Reference in New Issue
Block a user