Fix for scrollColumnToVisisble also scrolling in the Y direction. Also fixed headerview not being scrolled. Closes #1081

This commit is contained in:
Randall Luecke committed 2011-01-06 15:22:18 -06:00
1 parent 2028efabc3
commit 8254543da7
1 file changed
+8 -2
+8 -2
View File
@@ -2105,8 +2105,14 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
*/
- (void)scrollColumnToVisible:(int)columnIndex
{
[self scrollRectToVisible:[self rectOfColumn:columnIndex]];
/*FIX ME: tableview header isn't rendered until you click the horizontal scroller (or scroll)*/
var visible = [self visibleRect],
colRect = [self rectOfColumn:columnIndex];
visible.origin.x = colRect.origin.x;
visible.size.width = colRect.size.width;
[self scrollRectToVisible:visible];
[_headerView scrollRectToVisible:colRect];
}
/*!