Fix to prevent resize issues in the outline view.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21246 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-05-22 04:40:06 +00:00
parent 5ac7372ea2
commit edafe3f8c9
2 changed files with 9 additions and 11 deletions

View file

@ -1,3 +1,8 @@
2005-05-22 00:41 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormClassEditor.m: Correction for outline view
resize issues in switchView.
2005-05-21 13:15 Gregory John Casamento <greg_casamento@yahoo.com>
* English.lproj/GormPrefGeneral.gorm: Make the top switch off.

View file

@ -155,6 +155,10 @@ NSString *GormSwitchViewPreferencesNotification = @"GormSwitchViewPreferencesNot
name: GormSwitchViewPreferencesNotification
object: nil];
// kludge to prevent it from having resize issues.
[self setContentView: scrollView];
[self sizeToFit];
// switch...
[self switchView];
@ -179,20 +183,9 @@ NSString *GormSwitchViewPreferencesNotification = @"GormSwitchViewPreferencesNot
if([viewType isEqual: @"Outline"] || viewType == nil)
{
NSRect rect = [[self superview] frame];
// NSRect old = rect;
// reset the origin...
// rect.origin.x = 0;
// rect.origin.y = 0;
[self setContentView: scrollView];
// [scrollView setFrame: old];
// [outlineView setFrame: rect];
[self sizeToFit];
[[self superview] setFrame: rect];
// [scrollView setFrame: rect];
}
else if([viewType isEqual: @"Browser"])
{