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

Finding ancestor IScrollAnchorProvider instead ScrollViewer. #13079

Merged

Conversation

Meloman19
Copy link
Contributor

What does the pull request do?

Instead of searching for a ScrollViewer as a anchor provider, we are looking for first ancestor implementing the interface. By default ScrollContentPresenter.

What is the current behavior?

ScrollViewer is used as anchoring provider. But ScrollViewer is not a real provider and transmit calls to the ScrollContentPresenter.

What is the updated/expected behavior with this PR?

Just like ItemsRepeater, VirtualizingStackPanel should search for a anchor provider by interface.

@avaloniaui-team
Copy link
Contributor

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

@maxkatz6 maxkatz6 added this pull request to the merge queue Oct 1, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 1, 2023
@Meloman19
Copy link
Contributor Author

@maxkatz6 I think, one of the last merges broke the tests.

@maxkatz6 maxkatz6 added this pull request to the merge queue Oct 1, 2023
Merged via the queue into AvaloniaUI:master with commit 1249a0d Oct 2, 2023
5 checks passed
@maxkatz6 maxkatz6 added backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Dec 5, 2023
maxkatz6 pushed a commit that referenced this pull request Dec 5, 2023
Co-authored-by: Meloman19 <23280622+Meloman19@users.noreply.github.com>
@Meloman19 Meloman19 deleted the fix/VirtStackPanelAnchorProvider branch March 25, 2024 19:23
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.

3 participants