9-slicing: variable width response?
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## Bevy version
0.13
## What went wrong
I'm not sure how to describe this. If you have a 9-sliced node it seems to have different apparent widths based on the height of the node.
In this image, the top panel ("wood bucket" has a min_height of 60 and you can see it appears to be longer than the panel below it ("fill level"):

In this image, the name panel's min height has been increased to 85 and you can see it aligns with the description panel. If you drag the min height in a bevy inspector, the apparent width changes as you drag:

All other style properties are the same between these two examples.
I would expect the apparent width of the panel to not change as the height of the panel changes.
Note that the actual computed width of the panel is not changing. This is entirely visual.
Sorry for the yellow. I put that on there because it makes the difference more visible.
Contributor guide
Research direction
Start by reproducing the report in Bevy 0.13 with a 9-sliced node, comparing panels at different min_height values and observing the result in the Bevy inspector. Trace the 9-slice UI or rendering path that determines apparent width, then verify that changing height no longer changes the visual width while the computed width remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100