Skip to content

Commit

Permalink
Fix group ref (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Aug 28, 2024
1 parent 85245e4 commit 0b19a03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/litegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -4959,14 +4959,14 @@ LGraphNode.prototype.executeAction = function(action)
};
}, { left: Infinity, top: Infinity, right: -Infinity, bottom: -Infinity });

const groupTitleHeight = Math.round(group.font_size * 1.4);
const groupTitleHeight = Math.round(this.font_size * 1.4);

group.pos = [
this.pos = [
bounds.left - padding,
bounds.top - padding - groupTitleHeight
];

group.size = [
this.size = [
bounds.right - bounds.left + padding * 2,
bounds.bottom - bounds.top + padding * 2 + groupTitleHeight
];
Expand Down

0 comments on commit 0b19a03

Please sign in to comment.