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

Fix ScrollContentPresenter incorrectly handling BringIntoView when offset is coerced #14913

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

MrJul
Copy link
Member

@MrJul MrJul commented Mar 11, 2024

What does the pull request do?

A bit similar to #14900, this PR makes sure that ScrollContentPresenter.BringDescendantIntoView doesn't handle the RequestBringIntoView if the offset happened to be coerced back to its previous value, which can be the case for rounding errors.

A unit test has been added.

Fixed issues

@MrJul MrJul added the backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch label Mar 11, 2024
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0046045-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 merged commit acc3c3c into AvaloniaUI:master Mar 11, 2024
4 of 6 checks passed
@MrJul MrJul deleted the fix/scp-bringintoview-rounding branch March 12, 2024 21:26
maxkatz6 pushed a commit that referenced this pull request Apr 6, 2024
…fset is coerced (#14913)

* Added failing test for nested ScrollContentPresenters w/o rounding

* Fix SCP.BringDescendantIntoView with coerced offset
@maxkatz6 maxkatz6 added backported-11.1.x and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Apr 20, 2024
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.

Rendering artifacts in ListView
3 participants