call layoutSubviews when the tableview lays out its subviews.

This commit is contained in:
Randall Luecke
2012-02-02 19:34:11 -05:00
parent 3b4ad1d583
commit dd7d36da43
2 changed files with 16 additions and 0 deletions
+2
View File
@@ -817,6 +817,8 @@ var CPScrollerStyleGlobal = CPScrollerStyleOverlay,
}
[self reflectScrolledClipView:_contentView];
[documentHeaderView setNeedsLayout];
[documentHeaderView setNeedsDisplay:YES];
}
/* @ignore */
+14
View File
@@ -1513,6 +1513,8 @@ NOT YET IMPLEMENTED
if ([scrollView isKindOfClass:[CPScrollView class]] && [scrollView documentView] === self)
[scrollView _updateCornerAndHeaderView];
[self setNeedsLayout];
}
// Complexity:
@@ -3501,8 +3503,20 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
{
[super setNeedsDisplay:aFlag];
[_tableDrawView setNeedsDisplay:aFlag];
[[self headerView] setNeedsDisplay:YES];
}
/*!
@ignore
*/
- (void)setNeedsLayout
{
[super setNeedsLayout];
[[self headerView] setNeedsLayout];
}
/*!
@ignore
*/