Auto-resize fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3424 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-12-09 06:42:19 +00:00
parent 872ab1e340
commit 2eb6fb3f87
4 changed files with 836 additions and 750 deletions

View file

@ -1,3 +1,9 @@
Wed Dec 9 7:00:00 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* NSView.m: Complete rewrite of auto-resize code - now works!
* NSBox.m: Fix to make auto-resize work.
* GNUAlertPanel.m: Minor tidying for auto-resize.
Tue Dec 8 1998 Felipe A. Rodriguez <far@ix.netcom.com>
* NSScroller.m move backend code into frontend, polish code, remove ifdefs.

View file

@ -135,6 +135,8 @@ static GNUAlertPanel *reusableAlertPanel = nil;
NSRect rect;
NSBox *box;
[self setMaxSize: r.size];
[self setMinSize: r.size];
[self setTitle: @" "];
content = [self contentView];
@ -201,7 +203,7 @@ static GNUAlertPanel *reusableAlertPanel = nil;
rect.origin.x = 8.0;
messageField = [[NSTextField alloc] initWithFrame: rect];
[messageField setAutoresizingMask:
NSViewWidthSizable | NSViewHeightSizable];
NSViewWidthSizable | NSViewHeightSizable | NSViewMaxYMargin];
[messageField setEditable: NO];
[messageField setSelectable: NO];
[messageField setBordered: NO];

View file

@ -226,6 +226,12 @@
[self setFrameFromContentFrame: r];
}
- (void) resizeWithOldSuperviewSize: (NSSize)oldSize
{
[super resizeWithOldSuperviewSize: oldSize];
[content_view setFrame: [self calcSizes]];
}
//
// Managing the NSView Hierarchy
//

File diff suppressed because it is too large Load diff