Skip to content

Commit

Permalink
Merge branch 'fix-collapsed-clip' of https://github.com/pythongosssss…
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Nov 21, 2023
2 parents cd4fc77 + 89e31ab commit d66b631
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/scripts/domWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ function getClipPath(node, element, elRect) {
const MARGIN = 7;
const scale = app.canvas.ds.scale;

const bounding = selectedNode.getBounding();
const intersection = intersect(
{ x: elRect.x / scale, y: elRect.y / scale, width: elRect.width / scale, height: elRect.height / scale },
{
x: selectedNode.pos[0] + app.canvas.ds.offset[0] - MARGIN,
y: selectedNode.pos[1] + app.canvas.ds.offset[1] - LiteGraph.NODE_TITLE_HEIGHT - MARGIN,
width: selectedNode.size[0] + MARGIN + MARGIN,
height: selectedNode.size[1] + LiteGraph.NODE_TITLE_HEIGHT + MARGIN + MARGIN,
width: bounding[2] + MARGIN + MARGIN,
height: bounding[3] + MARGIN + MARGIN,
}
);

Expand Down

0 comments on commit d66b631

Please sign in to comment.