Originally Posted by Garkin
In XML should be "RIGHT":
XML Code:
<Label name="MyLabel" horizontalAlignment="RIGHT" />
In Lua should be TEXT_ALIGN_RIGHT:
Lua Code:
MyLabel:SetHorizontalAlignment(TEXT_ALIGN_RIGHT)
|
I tried both alternatives without success. However, it seems I might have even bigger problems. On another label I tried setting the
wrapMode="ELLIPSIS" which doesn't work either. Could these two problems be correlated?
Trying to further debug this issue I set a backdrop with 1 unit wide border and now I see the label is
exactly the width of the text, regardless of what is set in the width attribute. It seems like it auto-sizes, but I could not find any "auto size" attribute on the wiki. Any thoughts here? Might be worth mentioning I'm creating these controls from a template using CreateControlFromVirtual.