mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
Don't use height form getBounding()
This commit is contained in:
@@ -1564,13 +1564,13 @@ export class ComfyApp {
|
||||
* @param batchNode
|
||||
*/
|
||||
positionBatchNodes(nodes: LGraphNode[], batchNode: LGraphNode): void {
|
||||
const [x, y, width, nodeHeight] = nodes[0].getBounding()
|
||||
const [x, y, width] = nodes[0].getBounding()
|
||||
batchNode.pos = [ x + width + 100, y + 30 ]
|
||||
|
||||
// Retrieving Node Height is inconsistent
|
||||
let height = nodeHeight;
|
||||
let height = 0;
|
||||
if (nodes[0].type === 'LoadImage') {
|
||||
height = Math.max(344, nodeHeight)
|
||||
height = 344
|
||||
}
|
||||
|
||||
nodes.forEach((node, index) => {
|
||||
|
||||
Reference in New Issue
Block a user