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
I have this strange behavior when a label has long words and little horizontal space. The widget correctly create multiline for make the full text readable but it justify the first line (see image).
In the image the words "Complete Lines" are spread to fill the width of the rect.
Here the code that I use to render the Label inside the rect (tag_window_rect, the cyan rect in the image)
while tag.text is equal to "Complete Lines Chilldown".
let widget = Label::new(&tag.text);
ui.put(tag_window_rect, widget);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
``Hello
I have this strange behavior when a label has long words and little horizontal space. The widget correctly create multiline for make the full text readable but it justify the first line (see image).
In the image the words "Complete Lines" are spread to fill the width of the rect.
Here the code that I use to render the Label inside the rect (
tag_window_rect
, the cyan rect in the image)while
tag.text
is equal to "Complete Lines Chilldown".Thanks
Beta Was this translation helpful? Give feedback.
All reactions