mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
An update main that resizes a main shape a layout fills fixes its sizing, so the layout does not undo the pushed size; for a shape that is not a layout, that drops the sizing. A copy child made absolute pushed its absolute flag and its width, so its main shape came out absolute without the fill sizing the copy keeps. No layout fills an absolute shape: a fill axis of a shape the push leaves absolute now keeps its sizing. Test: updating-a-main-keeps-the-fill-sizing-its-child-authors (the library gate program of seed 175377838). Benchmark (scripts/bench-components, ms, lower 2.5% quantile), measured with the next commit's change in the tree as well: | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+---------+---------+--------| | deepest-edit-through-three-levels | 35.215 | 21.071 | 22.737 | 0.6 | | edit-through-a-chain-of-dependents | 68.931 | 44.394 | 45.61 | 0.64 | | library-update-into-copies | 83.083 | 53.752 | 54.632 | 0.65 | | main-edit-among-many-shapes | 4.837 | 2.372 | 2.633 | 0.49 | | main-edit-into-10-copies | 1.79 | 0.997 | 1.029 | 0.56 | | main-edit-into-100-copies | 15.415 | 10.009 | 11.143 | 0.65 | | main-edit-into-1000-copies | 153.086 | 109.767 | 112.342 | 0.72 | | variant-switch-into-copies | 32.052 | 22.182 | 23.614 | 0.69 | AI-assisted-by: claude-opus-5-5