From e58670102e31e192b5421ba65f08a227ec525fea Mon Sep 17 00:00:00 2001 From: ickshonpe Date: Mon, 28 Oct 2024 22:27:19 +0000 Subject: [PATCH] Require `ContentSize` on `UiImage` again (#16138) # Objective The `ContentSize` requirement on `UiImage` got lost during merge conflict fixes, causing some images such as the icons on the `game_menu` example to disappear. Fixes #16136 ## Solution Require `ContentSize` on `UiImage` again. --------- Co-authored-by: Alice Cecile --- crates/bevy_ui/src/widget/image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ui/src/widget/image.rs b/crates/bevy_ui/src/widget/image.rs index aaec16b869..049424ca14 100644 --- a/crates/bevy_ui/src/widget/image.rs +++ b/crates/bevy_ui/src/widget/image.rs @@ -12,7 +12,7 @@ use taffy::{MaybeMath, MaybeResolve}; /// The 2D texture displayed for this UI node #[derive(Component, Clone, Debug, Reflect)] #[reflect(Component, Default, Debug)] -#[require(Node, UiImageSize)] +#[require(Node, UiImageSize, ContentSize)] pub struct UiImage { /// The tint color used to draw the image. ///