Skip to content

Commit

Permalink
Fix for not being able to set headers on table view.
Browse files Browse the repository at this point in the history
Closes cappuccino#264.

Reviewed by me.
  • Loading branch information
Francisco Ryan Tolmasky I committed Sep 15, 2009
1 parent 98ef1bf commit 46dbce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AppKit/CPTableView.j
Expand Up @@ -702,7 +702,7 @@ CPTableViewSolidHorizontalGridLineMask = 1 << 1;
if (_headerView)
{
[_headerView setTableView:self];
[_headerView setFrameSize:_CGSizeMake(aSize.width, [_headerView frame].size.height)];
[_headerView setFrameSize:_CGSizeMake(_CGRectGetWidth([self frame]), _CGRectGetHeight([_headerView frame]))];
}

var scrollView = [[self superview] superview];
Expand Down Expand Up @@ -1338,7 +1338,7 @@ CPTableViewSolidHorizontalGridLineMask = 1 << 1;
[super setFrameSize:aSize];

if (_headerView)
[_headerView setFrameSize:_CGSizeMake(aSize.width, [_headerView frame].size.height)];
[_headerView setFrameSize:_CGSizeMake(_CGRectGetWidth([self frame]), _CGRectGetHeight([_headerView frame]))];
}

- (CGRect)exposedClipRect
Expand Down

0 comments on commit 46dbce0

Please sign in to comment.