* Source/NSTabView.m: Autoresize subviews when loaded from the nib

and set the mask to the make height and width resizable when the
	tab is selected


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28197 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-04-10 18:03:45 +00:00
parent 457b3b3dd8
commit 4828cb7684
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2009-04-10 14:03-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSTabView.m: Autoresize subviews when loaded from the nib
and set the mask to the make height and width resizable when the
tab is selected.
2009-04-10 13:31-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSDrawer.m: Correction for NSDrawer issues with draw

View file

@ -254,6 +254,7 @@
if (selectedView != nil)
{
[self addSubview: selectedView];
[selectedView setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable];
[selectedView setFrame: [self contentRect]];
[_window makeFirstResponder: [_selected initialFirstResponder]];
}
@ -868,6 +869,7 @@
[self setControlSize: ((vFlags & 0x0c000000) >> 26)];
[self setTabViewType: (vFlags & 0x00000007)];
}
[self setAutoresizesSubviews: YES];
}
else
{