[Nifty] text/label align=”left” ? --Solved

Hello, it’s still me.



I’m having issue with text element :

[xml]

<label id=“txtPlayerName” height=“40px” width=“100%” font=“aurulent-sans-17.fnt” text=“Player Name” align=“left” valign=“center” />

[/xml]

The tex stay in the middle of the panel. Does the element herits its alignment from parent elements or something like that ?



Ok… I’ve found !

It’s textHAlign=“left” that need to be used

Yes, there is a difference between align and textHAlign. align is responsible for the alignment of the element itself in respect to its parent element. textHAlign defines where the text is to be positioned when the actual width of the text takes less space than the width of the element would allow.

1 Like