Skip to content

The rendered style and bounding box for an edge may become stale #2238

@jspautsch

Description

@jspautsch

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 layout

This was the result:

image

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.js

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions