From 931b8e29e0a7e12ca81cae38dec0ff5e75f29ec2 Mon Sep 17 00:00:00 2001 From: ickshonpe Date: Fri, 11 Jul 2025 15:59:32 +0100 Subject: [PATCH] multiple scrollbar_width by target's scale factor in `Convert::from_node` --- crates/bevy_ui/src/layout/convert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ui/src/layout/convert.rs b/crates/bevy_ui/src/layout/convert.rs index 22c6c14aa4..161fc12751 100644 --- a/crates/bevy_ui/src/layout/convert.rs +++ b/crates/bevy_ui/src/layout/convert.rs @@ -73,7 +73,7 @@ pub fn from_node(node: &Node, context: &LayoutContext, ignore_border: bool) -> t x: node.overflow.x.into(), y: node.overflow.y.into(), }, - scrollbar_width: node.scrollbar_width, + scrollbar_width: node.scrollbar_width * context.scale_factor, position: node.position_type.into(), flex_direction: node.flex_direction.into(), flex_wrap: node.flex_wrap.into(),