Skip to content

Commit

Permalink
Require ContentSize on UiImage again (#16138)
Browse files Browse the repository at this point in the history
# 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 <[email protected]>
  • Loading branch information
ickshonpe and alice-i-cecile authored Oct 28, 2024
1 parent 72321ca commit e586701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ui/src/widget/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit e586701

Please sign in to comment.