Skip to content

Commit

Permalink
* [ios] fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cxfeng1 committed Aug 22, 2016
1 parent fb84fd9 commit ae99b92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ - (void)headerDidLayout:(WXHeaderComponent *)header

[section.rows enumerateObjectsUsingBlock:^(WXCellComponent * _Nonnull cell, NSUInteger row, BOOL * _Nonnull stop) {
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:sectionIndex];
[self _recomputeCellAbsolutePostion:cell forIndexPath:indexPath];
[self _recomputeCellAbsolutePosition:cell forIndexPath:indexPath];
}];
}];
}];
Expand Down Expand Up @@ -314,11 +314,11 @@ - (void)cellDidLayout:(WXCellComponent *)cell
}];
}

[self _recomputeCellAbsolutePostion:cell forIndexPath:indexPath];
[self _recomputeCellAbsolutePosition:cell forIndexPath:indexPath];
}];
}

- (void)_recomputeCellAbsolutePostion:(WXCellComponent *)cell forIndexPath:(NSIndexPath *)indexPath
- (void)_recomputeCellAbsolutePosition:(WXCellComponent *)cell forIndexPath:(NSIndexPath *)indexPath
{
CGRect cellRect = [_tableView rectForRowAtIndexPath:indexPath];
cell.absolutePosition = CGPointMake(self.absolutePosition.x + cellRect.origin.x,
Expand Down

0 comments on commit ae99b92

Please sign in to comment.