Search Issue Tracker

Not Reproducible

Votes

0

Found in

4.5.0a5

Issue ID

624504

Regression

No

IMGUI Labels wrap improperly when styled bold and beside a flexiblespace

IMGUI

-

When rendering an IMGUI GUILayout.Label inside a horizontal layout containing a FlexibleSpace, if a style is applied to the Label which enables word wrapping AND alters the font's dimensions (e.g. by setting the font's weight to bold), the Label's text will incorrectly wrap its contents.

Preconditions: Unity 4.5.x installed, empty project.
Steps to Reproduce:
1 - Attach the included C# "BoldIMGUI" script to an object in the scene.
2 - Run the scene.
3 - Observe that the text appears normal.
4 - Click the "Bold Only" and "Wrap Only" buttons. Observe that the text remains normal.
5 - Click the "Bold & Wrap" button.
6 - (EXPECTED) Text becomes bold, does not wrap.
6 - (OBSERVED) Text breaks the final word onto a new line, despite much visible space remaining between the end of the text line and the right-aligned image.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.