mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-29 01:42:03 +00:00
Fix for scrollColumnToVisisble also scrolling in the Y direction. Also fixed headerview not being scrolled. Closes #1081
This commit is contained in:
1 parent
2028efabc3
commit
8254543da7
1 file changed
+8
-2
@@ -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];
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in new issue
Block a user