Skip to content

Commit

Permalink
Set intrinsic size
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Oct 14, 2024
1 parent 41abce8 commit 4411b3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/egui/src/widgets/text_edit/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,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

Expand Down

0 comments on commit 4411b3a

Please sign in to comment.