mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
7ae7d410bf
commit
f00ec3ca2b
1 changed files with 13 additions and 1 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue