maybe fix relative len for sized span

This commit is contained in:
iris committed 2025-08-28 18:28:14 -04:00
1 parent a0e6623abe
commit 46c7d8ba26
3 files changed
+1 -3

No files matched your search

+1 -1
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)
}