Skip to content

Commit

Permalink
BorderRadius::percent fix (#16506)
Browse files Browse the repository at this point in the history
# Objective

Fix the `BorderRadius::percent` function so that it sets percentage
values, not pixel.
  • Loading branch information
ickshonpe authored and mockersf committed Nov 25, 2024
1 parent b0396e9 commit e96196a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/bevy_ui/src/ui_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2190,10 +2190,10 @@ impl BorderRadius {
bottom_left: f32,
) -> Self {
Self {
top_left: Val::Px(top_left),
top_right: Val::Px(top_right),
bottom_right: Val::Px(bottom_right),
bottom_left: Val::Px(bottom_left),
top_left: Val::Percent(top_left),
top_right: Val::Percent(top_right),
bottom_right: Val::Percent(bottom_right),
bottom_left: Val::Percent(bottom_left),
}
}

Expand Down

0 comments on commit e96196a

Please sign in to comment.