From 153b77e98ca809ccca6baac12c8d2421a7883190 Mon Sep 17 00:00:00 2001 From: Aleksander Date: Sat, 10 Jan 2026 11:29:52 +0100 Subject: [PATCH] wgui: fix incorrect text wrapping [skip ci] --- wgui/src/widget/label.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wgui/src/widget/label.rs b/wgui/src/widget/label.rs index 9f7465e..89a17c9 100644 --- a/wgui/src/widget/label.rs +++ b/wgui/src/widget/label.rs @@ -158,7 +158,11 @@ impl WidgetObj for WidgetLabel { (run.line_w.max(width), total_lines + 1) }); let height = total_lines as f32 * buffer.metrics().line_height; - taffy::Size { width, height } + + taffy::Size { + width: width + 1.0, /* f32 aliasing fix */ + height, + } } fn get_id(&self) -> WidgetID {