Skip to content

Commit 619c5e3

Browse files
authored
Require ContentSize for UiImage (#16262)
# Objective Automatic imaging sizing for image nodes isn't working because the the `ContentSize` requirement for `UiImage` got lost in some merge again. Fixes #16239 Fixes #16240 Fixes the missing images seen in #16241 ## Solution Require `ContentSize` for `UiImage`.
1 parent eb558bb commit 619c5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_ui/src/widget/image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use taffy::{MaybeMath, MaybeResolve};
1212
/// The 2D texture displayed for this UI node
1313
#[derive(Component, Clone, Debug, Reflect)]
1414
#[reflect(Component, Default, Debug)]
15-
#[require(Node, UiImageSize)]
15+
#[require(Node, UiImageSize, ContentSize)]
1616
pub struct UiImage {
1717
/// The tint color used to draw the image.
1818
///

0 commit comments

Comments
 (0)