mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
[Bug] Fix node empty space on converted widget (#740)
Resolves https://github.com/Comfy-Org/litegraph.js/issues/739 This is a temporary measurement to fix the issue. We should probably consider build a more robust layout mechanism later.
This commit is contained in:
@@ -1517,7 +1517,7 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
|
|||||||
|
|
||||||
const { inputs, outputs } = this
|
const { inputs, outputs } = this
|
||||||
let rows = Math.max(
|
let rows = Math.max(
|
||||||
inputs ? inputs.length : 1,
|
inputs ? inputs.filter(input => !isWidgetInputSlot(input)).length : 1,
|
||||||
outputs ? outputs.length : 1,
|
outputs ? outputs.length : 1,
|
||||||
)
|
)
|
||||||
const size = out || new Float32Array([0, 0])
|
const size = out || new Float32Array([0, 0])
|
||||||
|
|||||||
Reference in New Issue
Block a user