From 8a3d639f8101b2b8e087e4bf9e1a74971dc07bc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20K=2E=20Brosb=C3=B8l?= Date: Mon, 26 Feb 2018 20:53:38 +0100 Subject: [PATCH] VirtualizedList: Fix $sticky_lead size calculation --- Libraries/Lists/VirtualizedList.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index e03750e106ab..40be83938897 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -785,8 +785,7 @@ class VirtualizedList extends React.PureComponent { if (stickyIndicesFromProps.has(ii + stickyOffset)) { const initBlock = this._getFrameMetricsApprox(lastInitialIndex); const stickyBlock = this._getFrameMetricsApprox(ii); - const leadSpace = - stickyBlock.offset - (initBlock.offset + initBlock.length); + const leadSpace = stickyBlock.offset - initBlock.offset; cells.push( , );