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

Run page's content measurement through handler/native control #1700

Merged
merged 1 commit into from
Jul 20, 2021
Merged

Conversation

hartez
Copy link
Contributor

@hartez hartez commented Jul 16, 2021

ContentPage is calling measure on content layouts directly, which prevents them from running the measurement via the native control. In some cases, this prevents internal bookkeeping necessary for the control to properly update/redraw.

This change fixes that issue, and fixes an issue with updates on iOS which can cause a UIScrollView's ContentOffset to reset to zero when updating other controls in the layout.

Fixes #1269.

Prevent UIScrollView ContentOffset reset when UILabel requests layout
Fixes #1269
hartez added a commit that referenced this pull request Jul 16, 2021
Redth pushed a commit that referenced this pull request Jul 20, 2021
Redth pushed a commit that referenced this pull request Jul 20, 2021
Redth added a commit that referenced this pull request Jul 20, 2021
* A mostly-functioning WASDK ScrollView handler

* Forgot to check these in

* Add request method to IScrollView

* Working implementation of CommandMapper and working WinUI ScrollView scroll requests

* Remove Actions from PropertyMapper and into CommandMapper

* Ported Android ScrollViewRenderer to handler

* De-linqify

* iOS ScrollViewHandler

* ScrollViewHandler iOS (with ContentSize)

* Add device tests for ScrollViewHandlers

* Remove defunct tests

* Fix NRE

* Reinstate IntrinsicContentSize check - the bug this was removed to prevent
is fixed by PR #1700.

* Fix nullability

* Fix whitespace

* Whitespace

* Whitespace

* Yes, I'm being picky about whitespace

Co-authored-by: Jonathan Dick <jondick@gmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
@Redth Redth merged commit 52bcc1f into main Jul 20, 2021
@Redth Redth deleted the fix-1269 branch July 20, 2021 20:07
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
@samhouts samhouts added the fixed-in-6.0.100-preview.7.3 Look for this fix in 6.0.100-preview.7.3! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-6.0.100-preview.7.3 Look for this fix in 6.0.100-preview.7.3!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Label doesn't resize when text length changes
4 participants