From 8892ec6da0007ec5013524c5fd9697c05cf3c2d4 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Thu, 1 Jun 2000 19:57:54 +0000 Subject: [PATCH] Fixed problem with positioning of table components git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6628 72102866-910b-0410-8b05-ffd578937521 --- Source/NSScrollView.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/NSScrollView.m b/Source/NSScrollView.m index 613571c0a..e449d5b00 100644 --- a/Source/NSScrollView.m +++ b/Source/NSScrollView.m @@ -507,7 +507,6 @@ static Class rulerViewClass = nil; - (void) tile { - NSSize contentSize; float scrollerWidth = [NSScroller scrollerWidth]; NSRect contentRect; @@ -524,7 +523,7 @@ static Class rulerViewClass = nil; headerViewHeight = [[_headerClipView documentView] frame].size.height; } - if ((_hasCornerView == YES) && (_hasHorizScroller == YES)) + if (_hasCornerView == YES) { cornerView = [(NSTableView *)[_contentView documentView] cornerView]; if (headerViewHeight == 0) @@ -556,6 +555,11 @@ static Class rulerViewClass = nil; contentRect.origin.x = borderThickness; contentRect.origin.y = borderThickness; + if (_rFlags.flipped_view) + { + contentRect.origin.y += headerViewHeight; + } + if (_hasVertScroller) { vertScrollerRect.origin.x = _bounds.origin.x + borderThickness; @@ -581,7 +585,6 @@ static Class rulerViewClass = nil; if (_rFlags.flipped_view) { - contentRect.origin.y += headerViewHeight; horizScrollerRect.origin.y += headerViewHeight; horizScrollerRect.origin.y += contentRect.size.height + 1; }