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. ///