diff --git a/crates/bevy_ui/src/ui_node.rs b/crates/bevy_ui/src/ui_node.rs index 20631927e1fe2..92092fe5f583a 100644 --- a/crates/bevy_ui/src/ui_node.rs +++ b/crates/bevy_ui/src/ui_node.rs @@ -1,4 +1,4 @@ -use crate::{ContentSize, FocusPolicy, UiRect, Val}; +use crate::{FocusPolicy, UiRect, Val}; use bevy_color::Color; use bevy_ecs::{prelude::*, system::SystemParam}; use bevy_math::{vec4, Rect, Vec2, Vec4Swizzles}; @@ -286,7 +286,6 @@ impl From<&Vec2> for ScrollPosition { BackgroundColor, BorderColor, BorderRadius, - ContentSize, FocusPolicy, ScrollPosition, Transform, diff --git a/crates/bevy_ui/src/widget/text.rs b/crates/bevy_ui/src/widget/text.rs index 90222ef5cd054..30817e05da835 100644 --- a/crates/bevy_ui/src/widget/text.rs +++ b/crates/bevy_ui/src/widget/text.rs @@ -102,7 +102,7 @@ pub struct TextBundle {} /// ``` #[derive(Component, Debug, Default, Clone, Deref, DerefMut, Reflect)] #[reflect(Component, Default, Debug)] -#[require(Node, TextLayout, TextFont, TextColor, TextNodeFlags)] +#[require(Node, TextLayout, TextFont, TextColor, TextNodeFlags, ContentSize)] pub struct Text(pub String); impl Text {