mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 20:17:38 +00:00
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
This commit is contained in:
parent
48b0e2e362
commit
8892ec6da0
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue