mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
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:
parent
872ab1e340
commit
2eb6fb3f87
4 changed files with 836 additions and 750 deletions
|
@ -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.
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -226,6 +226,12 @@
|
|||
[self setFrameFromContentFrame: r];
|
||||
}
|
||||
|
||||
- (void) resizeWithOldSuperviewSize: (NSSize)oldSize
|
||||
{
|
||||
[super resizeWithOldSuperviewSize: oldSize];
|
||||
[content_view setFrame: [self calcSizes]];
|
||||
}
|
||||
|
||||
//
|
||||
// Managing the NSView Hierarchy
|
||||
//
|
||||
|
|
1570
Source/NSView.m
1570
Source/NSView.m
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue