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

This allows me to correctly support multiline TextEdits in egui_flex
This commit is contained in:
lucasmerlin 2024-10-15 09:13:34 +02:00 committed by GitHub
parent 23728e145e
commit 707cd03357
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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