From 2ae77e9b8d607687d7b1908ab646693ec05a96d5 Mon Sep 17 00:00:00 2001 From: Lucas Meurer Date: Mon, 14 Oct 2024 23:22:00 +0200 Subject: [PATCH] Set intrinsic size --- crates/egui/src/widgets/text_edit/builder.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/egui/src/widgets/text_edit/builder.rs b/crates/egui/src/widgets/text_edit/builder.rs index f4824a38117..12e92b904a6 100644 --- a/crates/egui/src/widgets/text_edit/builder.rs +++ b/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