mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 18:30:59 +00:00
Fix for scrollRowToVisible changing the X value instead of just the Y. Closes #1082
This commit is contained in:
1 parent
011c033478
commit
2028efabc3
1 file changed
+7
-1
@@ -2089,7 +2089,13 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
|
||||
*/
|
||||
- (void)scrollRowToVisible:(int)rowIndex
|
||||
{
|
||||
[self scrollRectToVisible:[self rectOfRow:rowIndex]];
|
||||
var visible = [self visibleRect],
|
||||
rowRect = [self rectOfRow:rowIndex];
|
||||
|
||||
visible.origin.y = rowRect.origin.y;
|
||||
visible.size.height = rowRect.size.height;
|
||||
|
||||
[self scrollRectToVisible:visible];
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in new issue
Block a user