Dirkster99 / AvalonDock

Our own development branch of the well known WPF document docking library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect active document is chosen on Layout document close

fredriks123 opened this issue · comments

When closing a document that is the single document of a floating window, the next active document is set to an unexpected one.

The logic behind closing the document checks for the index of the closing document (amongst all documents in the docking manager, not just the layout manager that the document is in) and activates the document a index - 1. This will in many cases change the selected document in the layout manager that is activated next.