mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 23:31:02 +00:00
* Source/NSSplitView.m (-adjustSubviews):
Call setFrame: on subviews rather than setFrameSize: followed by setFrameOrigin:, so that the subviews never have an inconsistent frame (old origin + new size). This was messing up cases with NSOpenGLView's inside split views, (e.g. usr-apps/examples/gui/MyGL) because the NSOpenGLView, when notified of its size changing, was using the invalid origin. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31030 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ad9ddfe0ea
commit
ec9b01146a
2 changed files with 13 additions and 4 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2010-07-25 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSSplitView.m (-adjustSubviews):
|
||||
Call setFrame: on subviews rather than setFrameSize: followed
|
||||
by setFrameOrigin:, so that the subviews never have an inconsistent
|
||||
frame (old origin + new size).
|
||||
|
||||
This was messing up cases with NSOpenGLView's inside split views,
|
||||
(e.g. usr-apps/examples/gui/MyGL) because the NSOpenGLView,
|
||||
when notified of its size changing, was using the invalid origin.
|
||||
|
||||
2010-07-25 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSBrowser.m,
|
||||
|
|
|
@ -880,8 +880,7 @@ static NSNotificationCenter *nc = nil;
|
|||
newSize = NSMakeSize(NSWidth(_bounds), newHeight);
|
||||
newPoint = NSMakePoint(0.0, running);
|
||||
running += newHeight + _dividerWidth;
|
||||
[views[i] setFrameSize: newSize];
|
||||
[views[i] setFrameOrigin: newPoint];
|
||||
[views[i] setFrame: NSMakeRect(newPoint.x, newPoint.y, newSize.width, newSize.height)];
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -904,8 +903,7 @@ static NSNotificationCenter *nc = nil;
|
|||
newSize = NSMakeSize(newWidth, NSHeight(_bounds));
|
||||
newPoint = NSMakePoint(running, 0.0);
|
||||
running += newWidth + _dividerWidth;
|
||||
[views[i] setFrameSize: newSize];
|
||||
[views[i] setFrameOrigin: newPoint];
|
||||
[views[i] setFrame: NSMakeRect(newPoint.x, newPoint.y, newSize.width, newSize.height)];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue