Don't try to resize subviews if divider positon wasn't changed

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21642 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2005-08-16 23:22:05 +00:00
parent 7ae7d410bf
commit f00ec3ca2b

View file

@ -103,7 +103,7 @@ static NSNotificationCenter *nc = nil;
NSApplication *app = [NSApplication sharedApplication];
static NSRect oldRect; //only one can be dragged at a time
static BOOL lit = NO;
NSPoint p;
NSPoint p, op;
NSEvent *e;
NSRect r, r1, bigRect, vis;
id v = nil, prev = nil;
@ -526,6 +526,18 @@ static NSNotificationCenter *nc = nil;
[self unlockFocus];
// Divider position hasn't changed don't try to resize subviews
if (_isVertical == YES && p.x == op.x)
{
[self setNeedsDisplay: YES];
return;
}
else if (p.y == op.y)
{
[self setNeedsDisplay: YES];
return;
}
[nc postNotificationName: NSSplitViewWillResizeSubviewsNotification
object: self];