fixed alignment of inline text elements

This commit is contained in:
Dmitry Stepanov
2026-09-26 19:18:16 +03:00
parent 946f152d4f
commit 3e14d5515a
+1 -1
View File
@@ -1162,7 +1162,7 @@ impl FormattedText {
inline,
&Rect {
position: Vector2::new(x, y),
size: desired_size,
size: Vector2::new(desired_size.x, line.height),
},
);
bounds = bounds.sup(&desired_size);