Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that viewport calculations for iOS ScrollView account for content insets #18277

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

hartez
Copy link
Contributor

@hartez hartez commented Oct 24, 2023

Description of Change

If the content of the ScrollView is smaller than the viewport, the content size needs to expand to fill the viewport. However, when calculating the viewport size, we need to account for content insets (from, e.g., safe area insets); otherwise, the content size of the ScrollView is set a bit too large, and the content will be scrollable.

Issues Fixed

Fixes #17224

@hartez hartez marked this pull request as ready for review October 24, 2023 19:03
@hartez hartez requested a review from a team as a code owner October 24, 2023 19:03
@PureWeen PureWeen merged commit 0cb5d80 into net8.0 Oct 24, 2023
47 checks passed
@PureWeen PureWeen deleted the fix-17224 branch October 24, 2023 22:34
@PureWeen
Copy link
Member

/backport to release/8.0.1xx-rc2.2

@github-actions
Copy link
Contributor

Started backporting to release/8.0.1xx-rc2.2: https://github.com/dotnet/maui/actions/runs/6633313703

PureWeen added a commit that referenced this pull request Nov 7, 2023
PureWeen added a commit that referenced this pull request Nov 7, 2023
github-actions bot pushed a commit that referenced this pull request Nov 9, 2023
PureWeen added a commit that referenced this pull request Nov 9, 2023
…for content insets (#18277)" (#18646)

This reverts commit 0cb5d80.

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
@mattleibow
Copy link
Member

This was reverted as it caused #18513

However, there is a new fix for both issues in #18586

@github-actions github-actions bot locked and limited conversation to collaborators Dec 10, 2023
@samhouts samhouts added the fixed-in-8.0.100-rc.2.9530 Look for this fix in 8.0.100-rc.2.9530 label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-8.0.100-rc.2.9530 Look for this fix in 8.0.100-rc.2.9530 platform/iOS 🍎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants