BorderRadius::percent fix (#16506)

# Objective

Fix the `BorderRadius::percent` function so that it sets percentage
values, not pixel.
This commit is contained in:
ickshonpe 2024-11-25 16:40:51 +00:00 committed by François Mockers
parent b0396e9db6
commit e96196a1a7

View File

@ -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),
}
}