mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Set Response::intrinsic_size for TextEdit (#5266)
This allows me to correctly support multiline TextEdits in egui_flex
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user