mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
Merge branch 'master' of https://github.com/jagenjo/litegraph.js
This commit is contained in:
@@ -3499,7 +3499,7 @@
|
|||||||
out[0] = this.pos[0] - 4;
|
out[0] = this.pos[0] - 4;
|
||||||
out[1] = this.pos[1] - LiteGraph.NODE_TITLE_HEIGHT;
|
out[1] = this.pos[1] - LiteGraph.NODE_TITLE_HEIGHT;
|
||||||
out[2] = this.size[0] + 4;
|
out[2] = this.size[0] + 4;
|
||||||
out[3] = this.size[1] + LiteGraph.NODE_TITLE_HEIGHT;
|
out[3] = this.flags.collapsed ? LiteGraph.NODE_TITLE_HEIGHT : this.size[1] + LiteGraph.NODE_TITLE_HEIGHT;
|
||||||
|
|
||||||
if (this.onBounding) {
|
if (this.onBounding) {
|
||||||
this.onBounding(out);
|
this.onBounding(out);
|
||||||
@@ -8840,7 +8840,7 @@ LGraphNode.prototype.executeAction = function(action)
|
|||||||
var widget_width = w.width || width;
|
var widget_width = w.width || width;
|
||||||
//outside
|
//outside
|
||||||
if ( w != active_widget &&
|
if ( w != active_widget &&
|
||||||
(x < 6 || x > widget_width - 12 || y < w.last_y || y > w.last_y + widget_height) )
|
(x < 6 || x > widget_width - 12 || y < w.last_y || y > w.last_y + widget_height || w.last_y === undefined) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var old_value = w.value;
|
var old_value = w.value;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
//Converter
|
//Converter
|
||||||
function Converter() {
|
function Converter() {
|
||||||
this.addInput("in", "*");
|
this.addInput("in", "*");
|
||||||
|
this.addOutput("out");
|
||||||
this.size = [80, 30];
|
this.size = [80, 30];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user