![]() # Objective - The UI outline in the new dev tools does not handle scale correctly when the scale is not 1. It looks like the `GlobalTransform` already handles `scale`. Fix #12566 - To reproduce make sure your screen scale is not 1 and run `cargo run --example ui --features bevy/bevy_dev_tools` - I'm not really familiar with Bevy UI internal so please review this carefully. ## Solution - Dont apply `window_scale` when calculating `LayoutRect` scale --- #### Question about UI Node with custom scale: - How do we expect the outline when the UI Node is spawn with custom transform Eg: `Transform::from_scale(Vec3::splat(1.5))`. Related discussion in Discord https://discord.com/channels/691052431525675048/743663673393938453/1219575406986788864 Before  After  |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |