1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Use correct intrinsic_size in allocate_response

This commit is contained in:
lucasmerlin
2025-03-19 09:20:08 +01:00
parent 4675c4d9a7
commit 2ef859e6a7

View File

@@ -1310,7 +1310,7 @@ impl Ui {
) -> Response { ) -> Response {
let (id, rect) = self.allocate_space(desired_size, desired_size_2); let (id, rect) = self.allocate_space(desired_size, desired_size_2);
let mut response = self.interact(rect, id, sense); let mut response = self.interact(rect, id, sense);
response.intrinsic_size = Some(desired_size); response.intrinsic_size = Some(desired_size_2);
response response
} }