Akash Babu
Akash Babu

Reputation: 1020

Jointjs Rendering issue in Firefox

Initially the diagram has been rendered, but when click/dragged on the diagram, the boxes(rectangles and ports ) is being hidden in firefox. But it works as expected in Chrome.

enter image description here

enter image description here

Could you please tell me what could possibly be wrong.

Tech stack used is: Angularjs Bootstrap

Upvotes: 0

Views: 326

Answers (1)

Giuliano
Giuliano

Reputation: 21

In my case that bug was happen when scale my paper (for zoom functionality).

I quickly fix it doing a little translate of 1px with a timeout after doing the scale

paper.scale(scaleValue);
...
setTimeout(function(){
  paper.translate(paper.translate().tx + 1, paper.translate().ty + 1);
}, 1);

Upvotes: 1

Related Questions