Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/LGraphGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
snapPoint,
} from "./measure"
import { LGraphNode } from "./LGraphNode"
import { RenderShape, TitleMode } from "./types/globalEnums"

export interface IGraphGroupFlags extends Record<string, unknown> {
pinned?: true
Expand Down Expand Up @@ -263,6 +262,9 @@ export class LGraphGroup implements Positionable, IPinnable {
this.pos[1] = boundingBox[1] - this.titleHeight
this.size[0] = boundingBox[2]
this.size[1] = boundingBox[3] + this.titleHeight

const snapTo = this.graph?.getSnapToGridSize()
if (snapTo) this.snapToGrid(snapTo)
}

/**
Expand Down
Loading