mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 03:17:43 +00:00
ribbon face: stacked lines measure through MeasureCx::least, as next now does
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5970a5a5e3
commit
c7d194eb66
@@ -266,7 +266,7 @@ fn stacked_sizes<C: Component>(cx: &MeasureCx<'_, C>, spec: &FaceSpec<'_>, lines
|
||||
.enumerate()
|
||||
.map(|(i, run)| {
|
||||
if cx.proposal == Proposal::Min {
|
||||
Vec2::new(cx.least_width(run), cx.layout_at(run, f32::INFINITY).size().y)
|
||||
cx.least(run).size()
|
||||
} else {
|
||||
cx.layout_at(run, line_room(spec, i + 1 == count, room, side, cx.gap())).size()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user