Repository navigation
fix(core): ViewBase without layoutable parent, ScrollView clipToBounds - #19
Merged
farfromrefug merged 2 commits intoNov 18, 2026
Merged
Conversation
`clipToBounds="false"` lets the content of a scroll view draw over its edges (iOS: `clipsToBounds`, Android: `clipChildren`). It was always clipped on iOS. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A Span updated while its layout requests were suspended replays the request (requestlayoutIfNeeded): its parent is a FormattedString, which is not a view and has no `requestLayout`, so the request threw "this.parent.requestLayout is not a function". Inside a collection view cell this made the cell provider fail and UIKit asserted on the missing cell. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
farfromrefug
force-pushed
the
fix/layout-request-during-layout-and-scrollview-clip
branch
from
November 18, 2026 08:37
d4ad855 to
0c8812c
Compare
farfromrefug
marked this pull request as ready for review
November 18, 2026 08:45
farfromrefug
deleted the
fix/layout-request-during-layout-and-scrollview-clip
branch
November 18, 2026 08:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ViewBase.requestLayoutno longer throwsthis.parent.requestLayout is not a functionwhen the parent has no layout to request (the parent of aSpanis aFormattedString). It threw when a layout request recorded while suspended was replayed (requestlayoutIfNeeded), which broke the preparation of collection view cells and made UIKit assert on the missing cell.ScrollView.clipToBounds(iOSclipsToBounds, AndroidclipChildren), defaulttrue: lets the content draw over the edges of the scroll view (an inset page, a view which goes under the safe area). It was always clipped on iOS.Testing
Found in a Svelte app on the iOS 27 simulator (collection view lists rotated while pages are navigated); the stack of the JS error pointed at
ViewBase.performLayout. Not yet verified with a full rebuild of the app against this branch; the Android side ofclipToBoundsis not tested.tscstill reports the two existing_rippleForeground/_borderForegrounderrors ofindex.android.ts.