mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +00:00
Check superview frame size before getting it
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13568 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ee8a2080d9
commit
f48f856447
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-05-01 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSView.m (-resizeWithOldSuperviewSize:): Check supeview
|
||||
before getting frame size (Solaris limintation).
|
||||
|
||||
2002-04-30 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Version: 0.7.7
|
||||
|
|
|
@ -1282,7 +1282,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
- (void) resizeWithOldSuperviewSize: (NSSize)oldSize
|
||||
{
|
||||
int options = 0;
|
||||
NSSize superViewFrameSize = [_super_view frame].size;
|
||||
NSSize superViewFrameSize;
|
||||
NSRect newFrame = _frame;
|
||||
BOOL changedOrigin = NO;
|
||||
BOOL changedSize = NO;
|
||||
|
@ -1290,6 +1290,10 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
if (_autoresizingMask == NSViewNotSizable)
|
||||
return;
|
||||
|
||||
superViewFrameSize = NSMakeSize(0,0);
|
||||
if (_super_view)
|
||||
superViewFrameSize = [_super_view frame].size;
|
||||
|
||||
/*
|
||||
* determine if and how the X axis can be resized
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue