mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A detach can leave a nested copy child with its geometry touched. When the main then makes that child fill, the copy's own flex gives it its width. Update-main pushed that width, and the sizing rule, seeing the touched geometry, fixed the main child's sizing, though the copy never sized the child itself. The copy and its main lost the fill. pushed-size-sizing now takes no size from a copy whose own layout fills or hugs it on that axis. Test: updating-a-main-whose-copy-fills-a-child-of-touched-geometry-keeps- its-fill (the variant gate program of round 13, seed 333977410). Common suite: 2430 tests, 0 failures. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+---------+---------+--------| | deepest-edit-through-three-levels | 35.215 | 21.778 | 23.308 | 0.62 | | edit-through-a-chain-of-dependents | 68.931 | 44.155 | 44.668 | 0.64 | | library-update-into-copies | 83.083 | 52.14 | 54.92 | 0.63 | | main-edit-among-many-shapes | 4.837 | 2.324 | 2.463 | 0.48 | | main-edit-into-10-copies | 1.79 | 0.979 | 1.028 | 0.55 | | main-edit-into-100-copies | 15.415 | 9.396 | 9.878 | 0.61 | | main-edit-into-1000-copies | 153.086 | 110.162 | 113.117 | 0.72 | | variant-switch-into-copies | 32.052 | 22.141 | 22.813 | 0.69 | AI-assisted-by: claude-opus-5-5