File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ LGraphNode.prototype.addDOMWidget = function (
264264 options = { hideOnZoom : true , selectOn : [ 'focus' , 'click' ] , ...options }
265265
266266 if ( ! element . parentElement ) {
267- document . body . append ( element )
267+ app . canvasContainer . append ( element )
268268 }
269269 element . hidden = true
270270 element . style . display = 'none'
@@ -335,8 +335,8 @@ LGraphNode.prototype.addDOMWidget = function (
335335 Object . assign ( element . style , {
336336 transformOrigin : '0 0' ,
337337 transform : scale ,
338- left : `${ transform . a + transform . e + elRect . left } px` ,
339- top : `${ transform . d + transform . f + elRect . top } px` ,
338+ left : `${ transform . a + transform . e } px` ,
339+ top : `${ transform . d + transform . f } px` ,
340340 width : `${ widgetWidth - margin * 2 } px` ,
341341 height : `${ ( widget . computedHeight ?? 50 ) - margin * 2 } px` ,
342342 position : 'absolute' ,
You can’t perform that action at this time.
0 commit comments