Commit 9fd3fc69 authored by Jörg Richter's avatar Jörg Richter

Workaround vanishing edges

See dmx-platform/dmx-platform#310
parent 4f8116a2
Pipeline #8488 passed with stage
in 2 seconds
......@@ -988,6 +988,11 @@ function removeDetail (detail) {
detail.node.removeClass('expanded')
detail.node.style({width: null, height: null}) // reset size
cyView.hideEdgeHandle()
//
// vanishing edges workaround (https://github.com/cytoscape/cytoscape.js/issues/2566)
setTimeout(() => detail.node.shift('x', 1), 40)
setTimeout(() => detail.node.shift('x', -1), 80)
//
return playRestoreAnimation()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment