update ComputedNode's scrollbar_size during layout updates

This commit is contained in:
ickshonpe 2025-07-11 15:38:43 +01:00
parent 8d2500fc3d
commit ef816c79e9

View File

@ -307,6 +307,9 @@ with UI components as a child of an entity without UI components, your UI layout
.max(0.);
}
node.bypass_change_detection().scrollbar_size =
Vec2::new(layout.scrollbar_size.width, layout.scrollbar_size.height);
let scroll_position: Vec2 = maybe_scroll_position
.map(|scroll_pos| {
Vec2::new(