bevyengine / bevyengine/bevy

UI measurement tracking issue

Open
#21,576 1 comment 0 reactions 0 assignees View on GitHub
A-UI C-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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.