mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 20:50:44 +00:00
Fix for resizing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4609 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
52bd2ce67c
commit
164eaab46a
1 changed files with 11 additions and 1 deletions
|
@ -76,6 +76,17 @@
|
|||
NSRectFill(rect);
|
||||
}
|
||||
|
||||
/*
|
||||
* Special setFrame: implementation - don't use the autosize mechanism
|
||||
* Just resize the windows content-view to this size.
|
||||
*/
|
||||
- (void) setFrame: (NSRect)frameRect
|
||||
{
|
||||
autoresize_subviews = NO;
|
||||
[super setFrame: frameRect];
|
||||
[[window contentView] setFrame: frameRect];
|
||||
}
|
||||
|
||||
- (Class) classForCoder: (NSCoder*)aCoder
|
||||
{
|
||||
if ([self class] == [GSWindowView class])
|
||||
|
@ -301,7 +312,6 @@ static NSRecursiveLock *windowsLock;
|
|||
ASSIGN(content_view, aView);
|
||||
|
||||
[content_view setFrame: [wv frame]]; // Resize to fill window.
|
||||
[content_view setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable];
|
||||
[wv addSubview: content_view]; // Add to our window view
|
||||
NSAssert1 ([[wv subviews] count] == 1, @"window's view has %d subviews!",
|
||||
[[wv subviews] count]);
|
||||
|
|
Loading…
Reference in a new issue