You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removed the padding from the sidebar in the grid example (examples/ui/grid.rs)
Ran the grid example
What went wrong
Text in the sidebar overflows out of the sidebar element on the left hand side. The exact amount it overflows by depends on how wide the sidebar is (which can be changed by resizing the window). Note: text is left-aligned.
What should have happened
The text should be entirely contained within the node (unless the width is made so small that a single word cannot fit, but it that case it should overflow to the right not the left).
Additional information
I suspect this is a bug in glyph_brush_layout, but I'm not sure about that.
The text was updated successfully, but these errors were encountered:
nicoburns
added
C-Bug
An unexpected or incorrect behavior
A-UI
Graphical user interfaces, styles, layouts, and widgets
labels
May 1, 2023
Perhaps it's an artifact caused by the rounding of the text bounds by the measure func to force glyph_brush_layout to wrap lines consistently. Will investigate.
Bevy version
cf4bfb649dd06b4b6826424dbbc4efea9a6d924a
What you did
padding
from the sidebar in thegrid
example (examples/ui/grid.rs
)grid
exampleWhat went wrong
Text in the sidebar overflows out of the sidebar element on the left hand side. The exact amount it overflows by depends on how wide the sidebar is (which can be changed by resizing the window). Note: text is left-aligned.
What should have happened
The text should be entirely contained within the node (unless the width is made so small that a single word cannot fit, but it that case it should overflow to the right not the left).
Additional information
I suspect this is a bug in
glyph_brush_layout
, but I'm not sure about that.The text was updated successfully, but these errors were encountered: