Skip to content

Commit

Permalink
Update text_layout_types.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Sep 9, 2024
1 parent 1ccd056 commit 3ff1d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/epaint/src/text/text_layout_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3ff1d0d

Please sign in to comment.