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:
parent
bf30a25efc
commit
e6695d5e20
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user