Skip to content

Commit

Permalink
Bug fix: unwanted vertical net when item is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
smariel committed Apr 19, 2020
1 parent 8202734 commit cdb5f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/class.Canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class Canvas {
this.fabricCanvas.add(oNet.fabricLine);
oNet.fabricLine.sendToBack();

if(item.childrenID.length > 1) {
if(item.isVisible() && item.childrenID.length > 1) {
// prepare the vertical net position and style
let lastChild = this.tree.getItem(item.childrenID[item.childrenID.length-1]);
vNet.x1 = itemGeometry.xvnet - vNet.style.strokeWidth;
Expand Down

0 comments on commit cdb5f5b

Please sign in to comment.