Skip to content

Snap all group borders to grid, when [ Fit Group to Nodes ] is used and [ Always snap to grid ] is enabled.  #261

@JorgeR81

Description

@JorgeR81

With this new commit, groups are snapped to grid after moving:

comfyanonymous/ComfyUI#3393

But this works in a different way than the [ Fit Group to Nodes ] option.

When I use [ Fit Group to Nodes ], only the group's bottom border it's aligned with the grid ( not the top one ):

before_m

And after moving the group, it's the top border that's snapped to grid ( not the bottom one ), so the node positions are changed in relation to the group :

after2

after

So after moving, I still need to redimension the bottom border manually, to snap it to the grid:

fit

Once the group's top border it's aligned, the relative positions will always stay the same, after moving the group again.
But every time I use [ Fit Group to Nodes ], the group's top border will be misaligned again.
A solution would be to snap all borders to the grid, when [ Fit Group to Nodes ] is used, like on the last image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions