mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Revert D8683555: [react-native][PR] fix: account for ListHeaderComponent length when calculating offset…
Differential Revision: D8683555 Original commit changeset: 05df7b79c16e fbshipit-source-id: 6deb14b99fe04e67e264455ff92a5d8c1c2dd406
This commit is contained in:
committed by
Facebook Github Bot
parent
e8ec1cb16a
commit
604bcfa4a8
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user