From dd7d36da438325a4d113da4eac4853c6b5d363f9 Mon Sep 17 00:00:00 2001 From: Randall Luecke Date: Thu, 2 Feb 2012 19:34:11 -0500 Subject: [PATCH] call layoutSubviews when the tableview lays out its subviews. --- AppKit/CPScrollView.j | 2 ++ AppKit/CPTableView.j | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/AppKit/CPScrollView.j b/AppKit/CPScrollView.j index b4fb03a85..b696e351e 100644 --- a/AppKit/CPScrollView.j +++ b/AppKit/CPScrollView.j @@ -817,6 +817,8 @@ var CPScrollerStyleGlobal = CPScrollerStyleOverlay, } [self reflectScrolledClipView:_contentView]; + [documentHeaderView setNeedsLayout]; + [documentHeaderView setNeedsDisplay:YES]; } /* @ignore */ diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index e1ffeb2b1..0224fe4e7 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -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 */