maybe fix relative len for sized span

This commit is contained in:
2025-08-28 18:28:14 -04:00
parent a0e6623abe
commit 46c7d8ba26
3 changed files with 1 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ impl Widget for Span {
let dir_len = if total.ratio != 0.0 {
ctx.size.axis(axis)
} else {
total.fixed + total.relative * ctx.screen_size.axis(axis)
total.fixed + total.relative * ctx.size.axis(axis)
};
Vec2::from_axis(axis, dir_len, total.max_sized)
}