Skip to content

Commit 6ce33d0

Browse files
authored
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
1 parent 32a5c7d commit 6ce33d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_ui/src/render/ui_material_pipeline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ pub fn extract_ui_material_nodes<M: UiMaterial>(
396396
style.border.right,
397397
parent_width,
398398
ui_logical_viewport_size,
399-
) / uinode.size().y;
399+
) / uinode.size().x;
400400
let top =
401401
resolve_border_thickness(style.border.top, parent_width, ui_logical_viewport_size)
402402
/ uinode.size().y;

0 commit comments

Comments
 (0)