Skip to content

Fix flex-growing content sizing in <ScrollView>#1997

Open
sammy-SC wants to merge 1 commit into
react:mainfrom
sammy-SC:export-D112353599
Open

Fix flex-growing content sizing in <ScrollView>#1997
sammy-SC wants to merge 1 commit into
react:mainfrom
sammy-SC:export-D112353599

Conversation

@sammy-SC

Copy link
Copy Markdown
Contributor

Summary:
X-link: react/react-native#57601

Preserve available height for flex-growing subtrees nested inside scroll content. Apply optimized flex-basis measurement only when a conservative proof shows that the subtree is height-independent and connected to the nearest scroll ancestor through column-stretch layout edges.

Keep authored flex-basis, overflow, padding, absolute-positioning, wrapping, and percentage-owner semantics intact across layout and measurement passes. Caching this eligibility proof is intentionally left to a separately gated follow-up.

Changelog:
[General][Fixed] - Preserve nested <ScrollView> sizing during optimized flex-basis measurement

Differential Revision: D112353599

Summary:
X-link: react/react-native#57601

Preserve available height for flex-growing subtrees nested inside scroll content. Apply optimized flex-basis measurement only when a conservative proof shows that the subtree is height-independent and connected to the nearest scroll ancestor through column-stretch layout edges.

Keep authored flex-basis, overflow, padding, absolute-positioning, wrapping, and percentage-owner semantics intact across layout and measurement passes. Caching this eligibility proof is intentionally left to a separately gated follow-up.

Changelog:
[General][Fixed] - Preserve nested `<ScrollView>` sizing during optimized flex-basis measurement

Differential Revision: D112353599
@meta-cla meta-cla Bot added the CLA Signed label Jul 19, 2026
@meta-codesync

meta-codesync Bot commented Jul 19, 2026

Copy link
Copy Markdown

@sammy-SC has exported this pull request. If you are a Meta employee, you can view the originating Diff in D112353599.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant