mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue