Open ManInFez opened 3 years ago
This issue seems to be solved now in master
branch:
https://github.com/plotly/dash-cytoscape/assets/35932204/bd14629e-1678-4540-a7bf-b2164bf09ad4
Can we close this @alexcjohnson?
This bug still exists. When I run usage-reset-button.py
exactly as given, both the node positions and the zoom/pan reset. When I remove the edge as in #141, there are three problems:
position
attribures.Two more observations:
It does seem like the precise wording of the bug is correct, the behavior changes when there are no edge present. If for example I add another node that's not connected to anything (but the connection between nodes 1 and 2 is still there) the behavior is as expected, then when I again remove the edge we see the same problems.
The demo uses the grid
layout. If I change to the cose
layout, on initial draw the layout is applied (moving the nodes away from the given position
s) but breadthfirst
behaves the same as grid
- so there are at least two categories of behavior depending on layout type. After clicking the reset button none of these layout types are applied, ie the nodes keep the position
s given.
Description
Steps/Code to Reproduce
remove line 14, edge in graph, from
demos/usage-reset-layoyt.py
see https://github.com/plotly/dash-cytoscape/pull/141Expected Results
Layout should still be updated when pressing reset
Actual Results
nothing happens
Versions
Dash 1.20.0 Dash Core Components 1.1.3 Dash HTML Components 1.16.0 Dash Renderer 1.9.1 Dash HTML Components 0.2.0