From 5bb4a746601bdb3ba56a7cd60235ddccb632fe98 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 25 Mar 2026 13:02:47 +1100 Subject: [PATCH] #425 --- js/use_everywhere.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/use_everywhere.js b/js/use_everywhere.js index 687458f..56ccaab 100644 --- a/js/use_everywhere.js +++ b/js/use_everywhere.js @@ -26,10 +26,10 @@ function add_methods_to_all_nodes(node) { try { add_extra_menu_items(node, inject_outdating_into_object_method) // right click menu additions - const original_onDrawTitleBar = node.onDrawTitleBar; - node.onDrawTitleBar = function(ctx, title_height) { - original_onDrawTitleBar?.apply(this, arguments); - title_bar_additions(node, ctx, title_height) + const original_onDrawForeground = node.onDrawForeground; + node.onDrawForeground = function(ctx) { + original_onDrawForeground?.apply(this, arguments); + title_bar_additions(this, ctx, this.title_height || LiteGraph.NODE_TITLE_HEIGHT) } const original_onMouseEnter = node.onMouseEnter;