Skip to content

fix(core): iOS scrollableHeight and scrollableWidth include the end content inset - #11548

Merged
NathanWalker merged 1 commit into
mainfrom
fix/ios-scrollable-height-inset
Oct 21, 2026
Merged

NathanWalker merged 1 commit into
mainfrom
fix/ios-scrollable-height-inset

Conversation

@NathanWalker

Copy link
Copy Markdown
Contributor

Since #11409, iOS scrollToVerticalOffset clamps to the real end of the content. But scrollableHeight is still contentSize - bounds, which leaves out the content inset. So with the keyboard up (or any bottom inset), scrollToVerticalOffset(scrollableHeight) now stops one inset short of the end. Before #11409 it overshot and happened to land at the end. Apps that keep a chat or streamed list pinned to the bottom this way show the latest content under the keyboard on 9.1.3.

scrollableHeight and scrollableWidth now include the bottom and right adjustedContentInset on iOS, so they name the true end offset again.

Tests: TKUnit cases for vertical and horizontal ScrollViews with an end inset.

…ontent inset

Since scrollToVerticalOffset sets the offset exactly (#11409), scrollToVerticalOffset(scrollableHeight) stops a bottom inset short of the end: a keyboard or docked composer that sets contentInset.bottom hides the last lines. scrollableHeight and scrollableWidth now report the largest offset a scroll reaches, adjustedContentInset.bottom (right) included.
@nx-cloud

nx-cloud Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 5bf8ef4

Command Status Duration Result
nx run-many -t build -p core,webpack5,vite ✅ Succeeded 19s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-10-16 17:03:51 UTC

@pkg-pr-new

pkg-pr-new Bot commented Oct 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@nativescript/core@11548
npm i https://pkg.pr.new/@nativescript/vite@11548
npm i https://pkg.pr.new/@nativescript/webpack@11548

commit: 5bf8ef4

@NathanWalker
NathanWalker merged commit 2646b2c into main Oct 21, 2026
10 checks passed
@NathanWalker
NathanWalker deleted the fix/ios-scrollable-height-inset branch October 21, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant