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:
Michael Starke
2018-09-06 09:12:40 +02:00
parent 3d89bc7545
commit 43d0677250

View File

@@ -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