Tiny changing for better sizing of content view

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5065 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 1999-10-23 22:24:43 +00:00
parent bd47003f5f
commit 5972c4c49c

View file

@ -85,14 +85,18 @@ BOOL GSViewAcceptsDrag(NSView *v, id<NSDraggingInfo> dragInfo);
}
/*
* Special setFrame: implementation - don't use the autosize mechanism
* Just resize the windows content-view to this size.
* Special setFrame: implementation - a minimal autoresize mechanism
*/
- (void) setFrame: (NSRect)frameRect
{
NSSize oldSize = frame.size;
NSView *cv = [window contentView];
autoresize_subviews = NO;
[super setFrame: frameRect];
[[window contentView] setFrame: frameRect];
// Safety Check.
[cv setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable)];
[cv resizeWithOldSuperviewSize: oldSize];
}
- (Class) classForCoder: (NSCoder*)aCoder