Files
craft-libs/crates/text/src
dotCooCoo 4576af1b6b text: the Paragraph controls' host rows count in their measured height
ParagraphControls::show_with took `between` as FnOnce and ran it in the
first run of the controls' Stack body only. The Stack runs its body more
than once in a pass (measure, then real), so the host's rows were missing
from one of those runs. A container measured around the controls came out
one row short, and a flyout sized by that measure cut off Hyphenate below
its bottom edge.

`between` is now FnMut and runs in every run of the body. A caller that
passes a closure which only mutates its captures keeps compiling; one
that moves a captured value out needs to clone it.

The new test measures a Stack around the controls with a host row and
checks that the measure reaches the foot of Hyphenate. It fails without
the change (the host row does not show at all in that layout).
2026-11-28 22:45:18 -08:00
..