Set `Response::intrinsic_size` for TextEdit (#5266)
This allows me to correctly support multiline TextEdits in egui_flex
This commit is contained in:
parent
23728e145e
commit
707cd03357
|
|
@ -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…
Reference in New Issue