UI measurement tracking issue
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
`bevy_ui`'s measurement API is extremely neglected. It's poorly documented, hard to use, and there are persistant bugs that have stuck around for years.
#### Bugs
- [ ] The max_width/height constraints don't compose correctly with measure funcs.
#15543
- [ ] Node incorrectly sized with image child under specific conditions
#17792
- [ ] `Taffy` crashes when UI hierarchy is modified in specific way
#20642
- [ ] Warn on mixing UI content types
#17466
- [ ] `content_size` for internal nodes incorrectly includes the node's left/top border (Taffy github issue)
https://github.com/DioxusLabs/taffy/issues/871
- [ ] UI node with child text wrapping doesn't account for max width
https://github.com/bevyengine/bevy/issues/21769
#### Enhancements
- [ ] The Measure trait can't be implemented without importing taffy
#21423
- [ ] Example demonstrating how to use the `Measure` trait.
#9687
- [ ] Measure funcs should be directly injected into `UiSurface`
#17779
Contributor guide
Assessment
This issue has not been assessed yet.