Update splitview on tp branch with master changes

This commit is contained in:
Gregory John Casamento 2021-11-18 14:21:51 -05:00
parent 021322bf0d
commit 9f3b0f6e11

View file

@ -419,32 +419,6 @@ static NSNotificationCenter *nc = nil;
}
- (NSRect) _dividerRectForIndex: (NSUInteger)index
{
const SEL selector = @selector(splitView:effectiveRect:forDrawnRect:ofDividerAtIndex:);
NSRect rect = [[[self subviews] objectAtIndex: index] frame];
{
if (_isVertical == NO)
{
rect.origin.y = NSMaxY (rect);
rect.size.height = _dividerWidth;
}
else
{
rect.origin.x = NSMaxX (rect);
rect.size.width = _dividerWidth;
}
rect = NSIntersectionRect(rect, [self visibleRect]);
// TESTPLANT-MAL-08242017: Check with delegate for hit rect...
if (_delegate && [_delegate respondsToSelector: selector])
{
rect = [_delegate splitView: self effectiveRect: rect forDrawnRect: rect ofDividerAtIndex: index];
}
}
return rect;
}
/**
* In -mouseDown we intercept the mouse event to handle the
* splitview divider move. Moving the divider will do a live