1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 07:03:14 -04:00

TextEdit: You must explicitly choose singleline or multiline.

Multiline TextEdit now has a default height of 4 rows.
Added `ui.text_edit_singleline` and `ui.text_edit_multiline`.
This commit is contained in:
Emil Ernerfeldt
2020-11-13 11:22:00 +01:00
parent 8a0bc97e8c
commit 0340e2e6de
7 changed files with 56 additions and 22 deletions

View File

@@ -35,7 +35,7 @@ impl egui::app::App for MyApp {
ui.horizontal(|ui| {
ui.label("Your name: ");
ui.text_edit(name);
ui.text_edit_singleline(name);
});
ui.add(egui::Slider::u32(age, 0..=120).text("age"));