mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
With the WASM engine, a bool whose children turn measured its path with an axis-aligned box: a 50 px union turned 45 degrees came out 70.7 px wide. In a grid, that widened its track and moved its siblings, so a turned grid copy laid out its children elsewhere than a reflow of the same grid did, and elsewhere than the persisted changes put them. `calculate_bool_bounds` now takes the path's extent along the axes of the bool's bounds, as groups measure theirs; a bool without usable axes keeps the axis-aligned box. Found by the WASM replay of the pinned generated programs (program 156, a turned grid copy holding a union), which passes with it. Test: render-wasm `test_turned_bool_bounds_keep_its_orientation` (fails before the fix). WASM only; the benchmark covers JVM code and is not run. AI-assisted-by: claude-opus-5-5