-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Issue type
Bug report
Environment info
- Cytoscape.js version : 3.3.0
- Browser & version : Chrome 71
Current (buggy) behaviour
Running layouts in a compound graph results in edge labels not rendering in the correct positions.
Desired behaviour
Edge label position should always be in sync with the rendered edge.
Minimum steps to reproduce
Used the following demo as a starting point: http://js.cytoscape.org/demos/compound-nodes/
Then ran the following commands:
cy.style().selector('edge').style({ label: 'data(id)' }).update(); // show edge labels
cy.layout({name: 'random'}).run(); // run layoutThis was the result:
Since 3.3.0 I've intermittently run into similar issues where using positions() or shift() produces the same bug, and it will sometimes affect the compound node's label too, but I have not been able to reproduce consistently.
Metadata
Metadata
Assignees
Labels
bugA bug in the code of Cytoscape.jsA bug in the code of Cytoscape.js
