BorderRadius::percent
fix (#16506)
# Objective Fix the `BorderRadius::percent` function so that it sets percentage values, not pixel.
This commit is contained in:
parent
b0396e9db6
commit
e96196a1a7
@ -2190,10 +2190,10 @@ impl BorderRadius {
|
|||||||
bottom_left: f32,
|
bottom_left: f32,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
top_left: Val::Px(top_left),
|
top_left: Val::Percent(top_left),
|
||||||
top_right: Val::Px(top_right),
|
top_right: Val::Percent(top_right),
|
||||||
bottom_right: Val::Px(bottom_right),
|
bottom_right: Val::Percent(bottom_right),
|
||||||
bottom_left: Val::Px(bottom_left),
|
bottom_left: Val::Percent(bottom_left),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user