mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 11:00:59 +00:00
* 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:
parent
008615f225
commit
30cc46e496
2 changed files with 8 additions and 0 deletions
|
@ -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>
|
2009-04-10 13:31-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Source/NSDrawer.m: Correction for NSDrawer issues with draw
|
* Source/NSDrawer.m: Correction for NSDrawer issues with draw
|
||||||
|
|
|
@ -254,6 +254,7 @@
|
||||||
if (selectedView != nil)
|
if (selectedView != nil)
|
||||||
{
|
{
|
||||||
[self addSubview: selectedView];
|
[self addSubview: selectedView];
|
||||||
|
[selectedView setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable];
|
||||||
[selectedView setFrame: [self contentRect]];
|
[selectedView setFrame: [self contentRect]];
|
||||||
[_window makeFirstResponder: [_selected initialFirstResponder]];
|
[_window makeFirstResponder: [_selected initialFirstResponder]];
|
||||||
}
|
}
|
||||||
|
@ -868,6 +869,7 @@
|
||||||
[self setControlSize: ((vFlags & 0x0c000000) >> 26)];
|
[self setControlSize: ((vFlags & 0x0c000000) >> 26)];
|
||||||
[self setTabViewType: (vFlags & 0x00000007)];
|
[self setTabViewType: (vFlags & 0x00000007)];
|
||||||
}
|
}
|
||||||
|
[self setAutoresizesSubviews: YES];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue