ui material: fix right border width (#10421)

# Objective

- When writing a custom UI material, the right border doesn't have the
correct value

## Solution

- Fix the calculation
This commit is contained in:
François 2023-11-07 02:54:34 +01:00 committed by Carter Anderson
parent bf30a25efc
commit e6695d5e20

View file

@ -396,7 +396,7 @@ pub fn extract_ui_material_nodes<M: UiMaterial>(
style.border.right,
parent_width,
ui_logical_viewport_size,
) / uinode.size().y;
) / uinode.size().x;
let top =
resolve_border_thickness(style.border.top, parent_width, ui_logical_viewport_size)
/ uinode.size().y;