mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:42:01 +00:00
When a shape in a group of a copy authors a move or a resize, the untouched group's bounds follow it. Sync moved or resized the group back to its main's bounds and carried its whole subtree with it, so the shape lost the geometry it authored. A group or bool takes its bounds from its children, which sync places one by one: a move or resize of its bounds now carries nothing, and the group fits its children again. A turn or flip still carries the subtree. Tests: syncing-a-copy-group-keeps-the-place-its-shape-authors, syncing-a-copy-group-keeps-the-size-its-shape-authors, undoing-a-turn-of-a-copy-group-gives-the-groups-of-its-copies-their-bounds-back. The full common suite passes. The benchmark of the previous commit covers this one. AI-assisted-by: claude-opus-5-5