eclipse-sprotty / sprotty-theia

Integration of Sprotty diagrams into Theia IDE
https://eclipse.org/sprotty
Eclipse Public License 2.0
24 stars 14 forks source link

DiagramWidget is initialized multiple times #42

Closed spoenemann closed 5 years ago

spoenemann commented 5 years ago

DiagramWidget initializes its content in onAfterAttach. That Phosphor hook is called not only when the widget is created for the first time, but also when it is dragged to another panel (detached from the old panel and attached to the new panel). This leads to duplicate elements in the DOM.