* Source/NSScrollView.m: If the scrollview has scrollers,

don't pay attention to the hidden flag in nib loading.
	* Source/NSTableView.m: if the table has a cornerview, don't
	pay attention to the hidden flag in nib loading.  
	NOTE: In both instances it appears that Cocoa sets the hidden flag 
	when autohide is set to true.   GNUstep handles this case differently,
	so it's okay to ignore this flag when the scroller is in an
	NSScrollView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28231 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2009-04-19 03:23:11 +00:00
parent d1db66cd7c
commit 6ea6f0f5e2
3 changed files with 21 additions and 6 deletions

View file

@ -1561,7 +1561,7 @@ static float scrollerWidth;
if (content != nil)
{
// FIXME: I think this is not needed as we re-tile anyway.
// Move the content view since it is not moved when we retile.
NSRect frame = [content frame];
float w = [vScroller frame].size.width;
@ -1575,19 +1575,18 @@ static float scrollerWidth;
frame.origin.x += w;
[content setFrame: frame];
}
// set the document view into the content.
[self setContentView: content];
}
if (hScroller != nil && _hasHorizScroller)
{
[self setHorizontalScroller: hScroller];
[hScroller setHidden: NO];
}
if (vScroller != nil && _hasVertScroller)
{
[self setVerticalScroller: vScroller];
[vScroller setHidden: NO];
}
if ([aDecoder containsValueForKey: @"NSHeaderClipView"])
@ -1596,7 +1595,10 @@ static float scrollerWidth;
_headerClipView = [aDecoder decodeObjectForKey: @"NSHeaderClipView"];
}
[self tile];
// [self tile];
// set the document view into the content.
[self addSubview: vScroller];
[self setContentView: content];
[docView setPostsFrameChangedNotifications: post_frame];
[docView setPostsBoundsChangedNotifications: post_bound];
}