Skip to content

Fix simplified sample floating dock updates - #1122

Open
wieslawsoltes wants to merge 1 commit into
masterfrom
agent/issue-1044
Open

Fix simplified sample floating dock updates#1122
wieslawsoltes wants to merge 1 commit into
masterfrom
agent/issue-1044

Conversation

@wieslawsoltes

Copy link
Copy Markdown
Owner

Summary

  • replace non-observable List<IDockable> layout collections in DockSimplifiedSample with the factory's observable collections
  • extract the sample layout into a focused, testable DockFactory
  • add a headless regression that floats Tool 1, observes the layout update, redocks it beside the document, and verifies the floating window is removed without losing either dockable

Root cause

Docking operations mutated the sample model, but its plain List<T> collections did not notify Avalonia. The visual tree therefore remained stale while the model removed and reinserted dockables.

Validation

  • dotnet test tests/Dock.Avalonia.HeadlessTests/Dock.Avalonia.HeadlessTests.csproj -c Release --no-restore (614 passed)
  • dotnet build Dock.slnx -c Release --no-restore (0 errors)

Closes #1044

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.

Simple project with 2 windows cannot handle basic docking.

1 participant