mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 12:32:10 +01:00
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.