Browse Source

Set `Response::intrinsic_size` for TextEdit (#5266)

This allows me to correctly support multiline TextEdits in egui_flex
master
lucasmerlin 3 weeks ago
committed by GitHub
parent
commit
707cd03357
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      crates/egui/src/widgets/text_edit/builder.rs

1
crates/egui/src/widgets/text_edit/builder.rs

@ -562,6 +562,7 @@ impl<'t> TextEdit<'t> {
Sense::hover()
};
let mut response = ui.interact(outer_rect, id, sense);
response.intrinsic_size = Some(desired_outer_size);
response.fake_primary_click = false; // Don't sent `OutputEvent::Clicked` when a user presses the space bar

Loading…
Cancel
Save