mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 19:01:15 +00:00
Update splitview on tp branch with master changes
This commit is contained in:
parent
021322bf0d
commit
9f3b0f6e11
1 changed files with 0 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue