Remove align_self

This commit is contained in:
hexroll 2025-07-06 16:20:56 +01:00
parent 17d4cfb263
commit 8ea052f642
1 changed files with 0 additions and 3 deletions

View File

@ -95,7 +95,6 @@ pub fn scroll_view_node() -> Node {
Node {
overflow: Overflow::clip(),
align_items: AlignItems::Start,
align_self: AlignSelf::Stretch,
flex_direction: FlexDirection::Row,
..default()
}
@ -118,14 +117,12 @@ pub fn create_scroll_view(mut q: Query<&mut Node, Added<ScrollView>>) {
let Node {
overflow,
align_items,
align_self,
flex_direction,
..
} = scroll_view_node();
for mut style in q.iter_mut() {
style.overflow = overflow;
style.align_items = align_items;
style.align_self = align_self;
style.flex_direction = flex_direction;
}
}