diff --git a/crates/bevy_ui/src/layout/mod.rs b/crates/bevy_ui/src/layout/mod.rs index cc4cc9301db91..8063eaac76a2a 100644 --- a/crates/bevy_ui/src/layout/mod.rs +++ b/crates/bevy_ui/src/layout/mod.rs @@ -64,10 +64,12 @@ impl fmt::Debug for UiSurface { impl Default for UiSurface { fn default() -> Self { + let mut taffy = Taffy::new(); + taffy.disable_rounding(); Self { entity_to_taffy: Default::default(), window_nodes: Default::default(), - taffy: Taffy::new(), + taffy, } } } @@ -223,9 +225,10 @@ pub fn ui_layout_system( style_query: Query<(Entity, Ref