mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-20 15:25:01 +00:00
Fix for not being able to set headers on table view.
Closes #264. Reviewed by me.
This commit is contained in:
1 parent
98ef1bfd05
commit
46dbce0dbb
1 file changed
+2
-2
@@ -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];
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user