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 DockPanel index out of range #18261

Merged
merged 2 commits into from
Feb 20, 2025
Merged

Conversation

Poker-sang
Copy link
Contributor

@Poker-sang Poker-sang commented Feb 19, 2025

What does the pull request do?

Fix issue that DockPanel would throw IndexOutOfRangeException when there's no child in it.

What is the current behavior?

DockPanel would throw IndexOutOfRangeException when there's no child in it.

What is the updated/expected behavior with this PR?

DockPanel would not throw IndexOutOfRangeException when there's no child in it.

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

fix #18260

@avaloniaui-bot
Copy link

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

@maxkatz6 maxkatz6 added backport-candidate-11.2.x Consider this PR for backporting to 11.2 branch bug and removed backport-candidate-11.2.x Consider this PR for backporting to 11.2 branch labels Feb 20, 2025
@MrJul MrJul added this pull request to the merge queue Feb 20, 2025
Merged via the queue into AvaloniaUI:master with commit 117450d Feb 20, 2025
11 checks passed
@Poker-sang Poker-sang deleted the fix/dockpanel branch February 20, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to DockPanel to "add spacing properties" #17977 added an index out of range exception.
4 participants