multiple scrollbar_width by target's scale factor in Convert::from_node

This commit is contained in:
ickshonpe 2025-07-11 15:59:32 +01:00
parent cd8711a208
commit 931b8e29e0

View File

@ -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(),