diff --git a/crates/bevy_ui/src/ui_node.rs b/crates/bevy_ui/src/ui_node.rs index f40db8613c..b09ab4c355 100644 --- a/crates/bevy_ui/src/ui_node.rs +++ b/crates/bevy_ui/src/ui_node.rs @@ -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), } }