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