diff --git a/gpui/src/elements/label.rs b/gpui/src/elements/label.rs index c1e048eb93..4ae1504c1f 100644 --- a/gpui/src/elements/label.rs +++ b/gpui/src/elements/label.rs @@ -135,7 +135,10 @@ impl Element for Label { ); let size = vec2f( - line.width().max(constraint.min.x()).min(constraint.max.x()), + line.width() + .ceil() + .max(constraint.min.x()) + .min(constraint.max.x()), cx.font_cache .line_height(self.style.text.font_id, self.style.text.font_size), );