mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:24:24 +00:00
A Lazy child no pass showed yet takes the estimate its app gives (`Lazy::new(key, estimate)`): that long along the axes its scroll area scrolls, nothing across them, as a collection places rows it never built by its item layout's estimate. The never-shown "always run" branch of `lazy::decide` is gone. Gallery cards estimate their height from their story rows. A scroll position the framework holds is also named by content: the first child at or after the view's start (`lazy::Anchor`, kept with the offset in `ScrollState` and a collection's `Scrolled`). When extents before it change, the offset follows the child and the pass runs again, so the content in view does not move. Bound offsets keep no anchor. Entries of the out-of-view store record their scroll area. A frame drops only the entries an area that ran did not reach, so a hidden area (a tab switched away) keeps its children's extents. Trials: first show, shown again after a hide, content in view stays when an estimate above it resolves, collection rows stay when a row above them changes height; the gallery trial asserts each level first runs the cards in view.