Fix group ref (#96)

This commit is contained in:
Chenlei Hu
2024-08-28 11:01:03 -04:00
committed by GitHub
parent 85245e44bd
commit 0b19a039eb

View File

@@ -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
];