From fff2d7955efad77856db6c313046f12e257b5dc3 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 22 Nov 2023 14:01:22 +0100 Subject: [PATCH] Round up line width --- crates/gpui2/src/elements/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui2/src/elements/text.rs b/crates/gpui2/src/elements/text.rs index 8c5f7d8e1b..a35fc89997 100644 --- a/crates/gpui2/src/elements/text.rs +++ b/crates/gpui2/src/elements/text.rs @@ -191,7 +191,7 @@ impl TextState { for line in &lines { let line_size = line.size(line_height); size.height += line_size.height; - size.width = size.width.max(line_size.width); + size.width = size.width.max(line_size.width).ceil(); } element_state.lock().replace(TextStateInner {