diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index 0fdb23aaf..730cc4387 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -348,6 +348,10 @@ RED.editor = (function() { resize: function(e,ui) { if (editing_node) { $(this).dialog('option',"sizeCache-"+editing_node.type,ui.size); + if (editing_node._def.oneditresize) { + var form = $("#dialog-form"); + editing_node._def.oneditresize.call(editing_node,{width:form.width(),height:form.height()}); + } } }, open: function(e) { @@ -364,6 +368,12 @@ RED.editor = (function() { $(this).dialog('option','width',size.width); $(this).dialog('option','height',size.height); } + if (editing_node._def.oneditresize) { + setTimeout(function() { + var form = $("#dialog-form"); + editing_node._def.oneditresize.call(editing_node,{width:form.width(),height:form.height()}); + },0); + } } }, close: function(e) { diff --git a/nodes/core/core/25-catch.html b/nodes/core/core/25-catch.html index eab10de9a..755d7c641 100644 --- a/nodes/core/core/25-catch.html +++ b/nodes/core/core/25-catch.html @@ -22,7 +22,7 @@