mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +00:00
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:
parent
bd47003f5f
commit
5972c4c49c
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue