From ea3d09620a75441a3d568dc8f4f95224d8fb8d73 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Sat, 13 Jul 2024 21:40:45 +0100 Subject: [PATCH] Fix position on collapsed node --- web/js/locking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/locking.js b/web/js/locking.js index 64cafe2..5f55524 100644 --- a/web/js/locking.js +++ b/web/js/locking.js @@ -84,7 +84,7 @@ app.registerExtension({ const res = drawNodeShape.apply(this, arguments); if (node[LOCKED]) { - ctx.fillText("🔒", node.size[0] - 20, -10); + ctx.fillText("🔒", node.getBounding()[2] - 20, -10); } return res;