Corrected resizing problems.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21758 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-09-29 23:40:18 +00:00
parent b4b6c39964
commit 0c864577da
3 changed files with 11 additions and 8 deletions

View file

@ -1,3 +1,10 @@
2005-09-29 19:38 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormConnectionInspector.m: Corrected resizing attributes in
the GormInspectorManager setCurrentInspector: method.
* GormCore/GormInspectorsManager.m: Corrected resizing attributes for
connect and revert buttons in init.
2005-09-25 14:40 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormInspectorsManager.m: Additional correct in

View file

@ -45,14 +45,14 @@
// Create the okay and revert buttons, programmatically, since we shouldn't
// add them to the view. The wantsButtons handling code will do that.
okButton = [[NSButton alloc] initWithFrame: NSMakeRect(0,0,80,20)];
[okButton setAutoresizingMask: NSViewMaxYMargin | NSViewMinXMargin];
[okButton setAutoresizingMask: NSViewMinXMargin];
[okButton setAction: @selector(ok:)];
[okButton setTarget: self];
[okButton setTitle: _(@"Connect")];
[okButton setEnabled: NO];
revertButton = [[NSButton alloc] initWithFrame: NSMakeRect(0,0,80,20)];
[revertButton setAutoresizingMask: NSViewMaxYMargin | NSViewMinXMargin];
[revertButton setAutoresizingMask: NSViewMaxXMargin];
[revertButton setAction: @selector(revert:)];
[revertButton setTarget: self];
[revertButton setTitle: _(@"Revert")];

View file

@ -425,15 +425,12 @@
NSButton *revert;
rect.size.height = [selectionView frame].origin.y;
buttonsRect = NSMakeRect(0,0,IVW,IVB);
// buttonsRect.size.height = IVB;
// buttonsRect.size.width = IVW;
buttonsRect = NSMakeRect(0,0,rect.size.width,IVB);
rect.origin.y += IVB;
rect.size.height -= (IVB + 3);
buttonView = [[NSView alloc] initWithFrame: buttonsRect];
// [buttonView setAutoresizingMask:
// NSViewMaxYMargin | NSViewMinYMargin | NSViewMaxXMargin];
[buttonView setAutoresizingMask: NSViewWidthSizable];
[outer addSubview: buttonView];
RELEASE(buttonView);
@ -467,7 +464,6 @@
* Make the inspector view the correct size for the viewable panel,
* and set the frame size for the new contents before adding them.
*/
[inspectorView setFrame: rect];
rect.origin = NSZeroPoint;
[newView setFrame: rect];