Skip to content

Commit 5393885

Browse files
committed
fix(web): stop follow-ups from leaving giant blank space
1 parent e9f50c3 commit 5393885

2 files changed

Lines changed: 25 additions & 5 deletions

File tree

‎patches/@[email protected]‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,16 @@ index 914d2dafaafa001c9ab6791a0a0581659295e333..06466096ceb96ef8773f7f7e202a19c9
945945
}
946946
return nextSize;
947947
}
948+
@@ -6448,8 +6455,8 @@ function ScrollAdjust() {
949+
window.getComputedStyle(contentNode)[axis.paddingEndProp]
950+
);
951+
const temporaryPaddingEnd = `${(currentPaddingEnd || 0) + pad}px`;
952+
- temporaryPaddingRef.current = { baseline: baselinePaddingEnd, value: temporaryPaddingEnd };
953+
contentNode.style[axis.paddingEndProp] = temporaryPaddingEnd;
954+
+ temporaryPaddingRef.current = { baseline: baselinePaddingEnd, value: contentNode.style[axis.paddingEndProp] };
955+
void contentNode.offsetHeight;
956+
scrollBy();
957+
if (resetPaddingRafRef.current !== void 0) {
948958
diff --git a/react.mjs b/react.mjs
949959
index 95465f2ab89ce41a10553f58af83618f7310e83c..4b5f06c60f1e8bbd9035a49980d9e86820262da4 100644
950960
--- a/react.mjs
@@ -973,6 +983,16 @@ index 95465f2ab89ce41a10553f58af83618f7310e83c..4b5f06c60f1e8bbd9035a49980d9e868
973983
}
974984
return nextSize;
975985
}
986+
@@ -6427,8 +6434,8 @@ function ScrollAdjust() {
987+
window.getComputedStyle(contentNode)[axis.paddingEndProp]
988+
);
989+
const temporaryPaddingEnd = `${(currentPaddingEnd || 0) + pad}px`;
990+
- temporaryPaddingRef.current = { baseline: baselinePaddingEnd, value: temporaryPaddingEnd };
991+
contentNode.style[axis.paddingEndProp] = temporaryPaddingEnd;
992+
+ temporaryPaddingRef.current = { baseline: baselinePaddingEnd, value: contentNode.style[axis.paddingEndProp] };
993+
void contentNode.offsetHeight;
994+
scrollBy();
995+
if (resetPaddingRafRef.current !== void 0) {
976996
diff --git a/reanimated.d.ts b/reanimated.d.ts
977997
index e5043320700b12f34f4c0babbc341f85ca8135c1..2ce63830a28636b21937a0741fd0e613dae950fe 100644
978998
--- a/reanimated.d.ts

‎pnpm-lock.yaml‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)