From 3ff1d0d1491d7ab8f1a4fe6111ba5d86f9df1fb6 Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Mon, 9 Sep 2024 23:46:17 +0900 Subject: [PATCH 1/2] Update text_layout_types.rs --- crates/epaint/src/text/text_layout_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/epaint/src/text/text_layout_types.rs b/crates/epaint/src/text/text_layout_types.rs index df20c63c31d..c59a45e52a5 100644 --- a/crates/epaint/src/text/text_layout_types.rs +++ b/crates/epaint/src/text/text_layout_types.rs @@ -182,7 +182,7 @@ impl LayoutJob { // On a previous pass we may have rounded down by at most 0.5 and reported that as a width. // egui may then set that width as the max width for subsequent frames, and it is important // that we then don't wrap earlier. - self.wrap.max_width + 0.5 + self.wrap.max_width + 2.0 } else { self.wrap.max_width } From 87096a1703455afc773c0088422268f17b89c60c Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Tue, 10 Sep 2024 18:45:35 +0900 Subject: [PATCH 2/2] Update text_layout_types.rs --- crates/epaint/src/text/text_layout_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/epaint/src/text/text_layout_types.rs b/crates/epaint/src/text/text_layout_types.rs index c59a45e52a5..2eca9c313f9 100644 --- a/crates/epaint/src/text/text_layout_types.rs +++ b/crates/epaint/src/text/text_layout_types.rs @@ -182,7 +182,7 @@ impl LayoutJob { // On a previous pass we may have rounded down by at most 0.5 and reported that as a width. // egui may then set that width as the max width for subsequent frames, and it is important // that we then don't wrap earlier. - self.wrap.max_width + 2.0 + self.wrap.max_width + 16.0 } else { self.wrap.max_width }