Fix for scrollRowToVisible changing the X value instead of just the Y. Closes #1082

This commit is contained in:
Randall Luecke committed 2011-01-06 15:08:35 -06:00
1 parent 011c033478
commit 2028efabc3
1 file changed
+7 -1
+7 -1
View File
@@ -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];
}
/*!