Skip to content

Commit

Permalink
ui material: fix right border width (bevyengine#10421)
Browse files Browse the repository at this point in the history
# Objective

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

## Solution

- Fix the calculation
  • Loading branch information
mockersf authored and Ray Redondo committed Jan 9, 2024
1 parent db88113 commit 62a4a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ui/src/render/ui_material_pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 62a4a01

Please sign in to comment.