Skip to content

Commit

Permalink
Update builder.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Jul 31, 2024
1 parent 279209e commit e0f9e6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/egui/src/widgets/text_edit/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,12 @@ impl<'t> TextEdit<'t> {
hint_text_font_id,
)
} else {
hint_text.into_galley(ui, Some(wrap_mode), f32::INFINITY, hint_text_font_id)
hint_text.into_galley(
ui,
Some(TextWrapMode::Extend),
f32::INFINITY,
hint_text_font_id,
)
};
painter.galley(rect.min, galley, hint_text_color);
}
Expand Down

0 comments on commit e0f9e6c

Please sign in to comment.