alonso.torres a7ae3140c5 🐛 Keep the children of a copy sized on its own when its main fills
A nested copy made absolute in a copy keeps its own geometry. Its main
was then set to fill a grid and shrank. Sync places the main's children
like the copy: it resized the main to the copy's size, but the grid's
reflow refilled it to its cell, and the move that lines the two up
shifted the copy's children by the difference.

The main's subtree is now resized out of its parent's layout, since the
copy's size is its own and no layout of the main owns it.

Benchmark (scripts/bench-components, lower quantile in ms):

| world                              | baseline |     now | ratio |
|------------------------------------+----------+---------+-------|
| deepest-edit-through-three-levels  |   35.215 |   18.99 |  0.54 |
| edit-through-a-chain-of-dependents |   68.931 |   37.28 |  0.54 |
| library-update-into-copies         |   83.083 |   49.96 |  0.60 |
| main-edit-among-many-shapes        |    4.837 |   2.233 |  0.46 |
| main-edit-into-10-copies           |     1.79 |   1.017 |  0.57 |
| main-edit-into-100-copies          |   15.415 |   9.558 |  0.62 |
| main-edit-into-1000-copies         |  153.086 |  91.362 |  0.60 |
| variant-switch-into-copies         |   32.052 |  20.725 |  0.65 |

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:45 +01:00
..
2022-11-08 13:02:14 +01:00