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 GitHub
parent bb81a2cdb3
commit efd2982a88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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