mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 17:32:17 +00:00
Created groups are now scrolled into view (fixes #231)
This commit is contained in:
@@ -170,7 +170,9 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
|
|||||||
NSIndexPath *groupIndexPath = [group indexPath];
|
NSIndexPath *groupIndexPath = [group indexPath];
|
||||||
NSTreeNode *groupNode = [[self.treeController arrangedObjects] descendantNodeAtIndexPath:groupIndexPath];
|
NSTreeNode *groupNode = [[self.treeController arrangedObjects] descendantNodeAtIndexPath:groupIndexPath];
|
||||||
[self.outlineView expandItem:groupNode.parentNode];
|
[self.outlineView expandItem:groupNode.parentNode];
|
||||||
[self.outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:[self.outlineView rowForItem:groupNode]] byExtendingSelection:NO];
|
NSInteger groupRow = [self.outlineView rowForItem:groupNode];
|
||||||
|
[self.outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:groupRow] byExtendingSelection:NO];
|
||||||
|
[self.outlineView scrollRowToVisible:groupRow];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id)itemUnderMouse {
|
- (id)itemUnderMouse {
|
||||||
|
|||||||
Reference in New Issue
Block a user