Dirkster99 / AvalonDock

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drop FloatingDocumentWindow into DocumentPane is not consistent (when FloatingDocumentWindow contains LayoutAnchorable)

Dirkster99 opened this issue · comments

Precondition

  • AvalonDock.Layout.config file is not present in MLibTest bin folder
  • LayoutAnchorables can be docked into a LayoutDocument:
    Make sure the line anchorableToShow.CanDockAsTabbedDocument = false; is commented out or not present in LayoutInitializer.BeforeInsertAnchorable(...)

Test Case 1

  • Start MLibTest

  • Open 3 text files via Files>Open
    Untitled

  • Drag & Drop 2 documents out of the MainWindow into a FloatingDocumentWindow
    Untitled1

  • Drag & Drop a LayoutAnchorable (toolwindow) into the FloatingDocumentWindow
    Untitled2

  • Drag & Drop FloatingDocumentWindow into one of the outer drop buttons of the DocumentPane (e.g. Left most drop button)
    Untitled3

  • Result: OK (both documents and the Anchorable are present in the expected position)
    Untitled4

Test Case 2

(same pre-conditions as Test Case 1)

  • Start MLibTest

  • Open 2 text files via Files>Open
    Untitled

  • Drag & Drop 2 documents out of the MainWindow into a FloatingDocumentWindow
    Untitled1

  • Drag & Drop a LayoutAnchorable (toolwindow) into the FloatingDocumentWindow
    Untitled2

  • Drag & Drop FloatingDocumentWindow into the center drop button of the DocumentPane
    Untitled3

  • Result: NOT OK (the Anchorable - Tool 3 in screenshots - is no longer present in the application and cannot be viewed anymore)
    Untitled4