From 30cc46e496a011579954f4f6cd30d565b94a19b5 Mon Sep 17 00:00:00 2001 From: gcasa Date: Fri, 10 Apr 2009 18:03:45 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ Source/NSTabView.m | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3c0cc5447..0093ac08e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-04-10 14:03-EDT Gregory John Casamento + + * 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 * Source/NSDrawer.m: Correction for NSDrawer issues with draw diff --git a/Source/NSTabView.m b/Source/NSTabView.m index 0d46bf6ef..b12f4a8dd 100644 --- a/Source/NSTabView.m +++ b/Source/NSTabView.m @@ -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 {