Files
craft-libs/crates/ui-widgets/tests/it/layout
skylartaylor 6bb97dbcb2 Runtime: what code outside the framework measures in measure::run joins no body's kept transcript
An app that sizes a row itself measures the component with Show::measure_in inside
runtime::measure::run and then shows it with show_at. In the measuring run of the
body around it, that measure joined the body's kept transcript as one of its
components; in the real run, measure::run made it a measuring call with no
transcript open, so it recorded nothing and checked nothing. The body then found a
kept component its real run never asked, read as changed, and ran a discard pass
every frame (LightCraft's Edit panel slider rows).

runtime::measure::run now runs its closure inside a layout-memory boundary: what it
measures is its own in both runs. The framework's own measuring runs use the new
crate-internal measure::measuring, unchanged. Trial: SliderField rows sized through
measure::run and shown with show_at in a Stack settle to one pass.
2026-11-25 08:14:54 +01:00
..