bevy/crates/bevy_ui/src
ickshonpe 3cd83031e1 Fix AccessKit node bounds (#18706)
# Objective

Fixes #18685

## Solution

* Don't apply the camera translation.
* Calculate the min and max bounds of the accessibility node rect taking
the UI translation relative to its center not the top-left corner.

## Testing

Install [NVDA](https://www.nvaccess.org/). In NVDA set `Preferences ->
Settings -> Vision -> Enable Highlighting`.

Then run bevy's `tab_navigation` example:
```
cargo run --example tab_navigation
```
If everything is working correctly, NVDA should draw a border around the
currently selected tab button:

![Screenshot 2025-04-07
130523](https://github.com/user-attachments/assets/07d9a795-5d55-4b61-9602-2e8917020245)
2025-04-09 00:21:41 +02:00
..
experimental Switch ChildOf back to tuple struct (#18672) 2025-04-03 21:45:43 +02:00
layout Switch ChildOf back to tuple struct (#18672) 2025-04-03 21:45:43 +02:00
render Remove the entity index from the UI phase's sort key (#18273) 2025-03-12 17:11:02 +00:00
widget Improved Require Syntax (#18555) 2025-03-26 19:07:30 +01:00
accessibility.rs Fix AccessKit node bounds (#18706) 2025-04-09 00:21:41 +02:00
focus.rs Rename EntityBorrow/TrustedEntityBorrow to ContainsEntity/EntityEquivalent (#18470) 2025-03-30 10:24:00 +02:00
geometry.rs Use UiRect::all to build the UiRect constants (#18372) 2025-03-17 21:51:11 +00:00
lib.rs register ComputedNodeTarget (#18503) 2025-03-25 22:39:04 +01:00
measurement.rs
picking_backend.rs Unify picking backends (#17348) 2025-03-18 21:18:06 +01:00
stack.rs
ui_material.rs Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
ui_node.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
update.rs Switch ChildOf back to tuple struct (#18672) 2025-04-03 21:45:43 +02:00