Skip to content

Commit

Permalink
Revert D8683555: [react-native][PR] fix: account for `ListHeaderCompo…
Browse files Browse the repository at this point in the history
…nent` length when calculating offset…

Differential Revision:
D8683555

Original commit changeset: 05df7b79c16e

fbshipit-source-id: 6deb14b99fe04e67e264455ff92a5d8c1c2dd406
  • Loading branch information
bestander authored and facebook-github-bot committed Jul 7, 2018
1 parent e8ec1cb commit 604bcfa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Libraries/Lists/VirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -1217,9 +1217,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
}

_selectOffset(metrics: $ReadOnly<{x: number, y: number}>): number {
return (
(!this.props.horizontal ? metrics.y : metrics.x) - this._headerLength
);
return !this.props.horizontal ? metrics.y : metrics.x;
}

_maybeCallOnEndReached() {
Expand Down

0 comments on commit 604bcfa

Please sign in to comment.