mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 23:09:33 +00:00
Fixed rendering bug on 10.10 and 10.11 for custom fields
This commit is contained in:
@@ -35,6 +35,24 @@ NSInteger MPCustomFieldIndexFromTag(NSInteger tag) {
|
||||
@implementation MPCustomFieldTableViewDelegate
|
||||
|
||||
|
||||
- (void)tableView:(NSTableView *)tableView didRemoveRowView:(NSTableRowView *)rowView forRow:(NSInteger)row {
|
||||
if(@available(macOS 10.12, *)) {
|
||||
// 10.12 and higher are working correctly
|
||||
}
|
||||
else {
|
||||
[tableView invalidateIntrinsicContentSize];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)tableView:(NSTableView *)tableView didAddRowView:(NSTableRowView *)rowView forRow:(NSInteger)row {
|
||||
if(@available(macOS 10.12, *)) {
|
||||
// 10.12 and higher are working correctly
|
||||
}
|
||||
else {
|
||||
[tableView invalidateIntrinsicContentSize];
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
- (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row {
|
||||
static NSTextFieldCell *cell;
|
||||
|
||||
Reference in New Issue
Block a user