alonso.torres 8f0b749563 🐛 Place a reset nested copy beside the parent its layout moved
A reset nested copy under a copy that keeps its own geometry takes the
placement that a sync of that copy gives its subtree. That sync places
the reset head's parent before the parent's layout does, so when a copy
layout placed the parent elsewhere than its main, as a reversed flex
direction does, the reset head moved by the parent's main offset and
was left apart from the parent it belongs to.

The placement follows the parent where it is: it moves by the offset
between the parent's proposed and actual places.

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

| world                              | baseline |     now | ratio |
|------------------------------------+----------+---------+-------|
| deepest-edit-through-three-levels  |   35.215 |  18.762 |  0.53 |
| edit-through-a-chain-of-dependents |   68.931 |  39.749 |  0.58 |
| library-update-into-copies         |   83.083 |  46.429 |  0.56 |
| main-edit-among-many-shapes        |    4.837 |   2.079 |  0.43 |
| main-edit-into-10-copies           |     1.79 |   0.943 |  0.53 |
| main-edit-into-100-copies          |   15.415 |   8.922 |  0.58 |
| main-edit-into-1000-copies         |  153.086 |  91.435 |  0.60 |
| variant-switch-into-copies         |   32.052 |   20.56 |  0.64 |

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:46 +01:00
..