mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:42:01 +00:00
A grid copy took one of its children out of the flow (absolute position) and changed its own width. Resetting it gave the child back its main's position, which puts it in the flow, while the copy's cells had no room for it, and placing the resized copy's subtree failed in the grid layout. The layout child attributes a sync copies onto the children did not assign the grid's cells again, and that placement read the grid as it was before the sync, with its old cells. The grid now assigns its cells again when a synced child enters or leaves its flow, and the placement takes the synced parent with only its old placement. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+--------+---------+--------| | deepest-edit-through-three-levels | 35.215 | 18.907 | 19.891 | 0.54 | | edit-through-a-chain-of-dependents | 68.931 | 42.713 | 43.599 | 0.62 | | library-update-into-copies | 83.083 | 51.226 | 52.74 | 0.62 | | main-edit-among-many-shapes | 4.837 | 2.266 | 2.385 | 0.47 | | main-edit-into-10-copies | 1.79 | 0.954 | 0.986 | 0.53 | | main-edit-into-100-copies | 15.415 | 9.427 | 9.984 | 0.61 | | main-edit-into-1000-copies | 153.086 | 94.804 | 102.222 | 0.62 | | variant-switch-into-copies | 32.052 | 22.513 | 22.828 | 0.7 | AI-assisted-by: claude-opus-5-5