Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] Fix keep-scroll-position property not work if cell height is no…
Browse files Browse the repository at this point in the history
…t integer。 (#1845)
  • Loading branch information
mahaiyannn authored and cxfeng1 committed Nov 29, 2018
1 parent 943ec40 commit 546b12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Component/WXListComponent.mm
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ - (void)_performUpdates:(void(^)(void))updates withKeepScrollPosition:(BOOL)keep

if (keepScrollPosition) {
CGPoint afterContentOffset = _tableView.contentOffset;
CGPoint newContentOffset = CGPointMake(afterContentOffset.x, afterContentOffset.y + adjustment);
CGPoint newContentOffset = CGPointMake(afterContentOffset.x, afterContentOffset.y + ceilf(adjustment));
_tableView.contentOffset = newContentOffset;
}

Expand Down

0 comments on commit 546b12b

Please sign in to comment.