mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:24:24 +00:00
The extent that bounds a body's offset lived in shown memory (`BodyView`), which is evicted soon after a body stops showing, while the offset and its anchor live in session memory (`ScrollState`). A body shown again after a longer hide clamped its kept offset against an extent of 0 and came back at the top. The extent now lives in `ScrollState` beside the offset, with the same lifetime; `BodyView` keeps the view rect. The anchor rule runs only in the run that lays the content out for the view: a measure run places no Lazy children, so it would clear the anchor.