2015-03-02, 18:31
I'm using horizontal fixedlist for some of my menus. Width of each item is limited by layout so for some longer ones I want to use 2 lines. As far as I understand wrapmultiline doesn't work in lists so I choose textbox (it's generic so using label and label2 isn't option, i need automatic wrapping).
To make it conform to my design I need to center each item vertically and there lies my problem ... I wasn't able to make it working
I tried <aligny>center</aligny>
or <height>auto</height> + <centertop>50%</centertop>
and other combination, but nothing seems to work. What I'm doing wrong? Or is it known issue?
Thanks!
To make it conform to my design I need to center each item vertically and there lies my problem ... I wasn't able to make it working
I tried <aligny>center</aligny>
Code:
<itemlayout width="330" height="104">
<control type="textbox">
<centerleft>50%</centerleft>
<width>310</width>
<align>center</align>
<aligny>center</aligny>
<font>Font_44px</font>
<textcolor>Bright</textcolor>
<label>$INFO[ListItem.Label]</label>
</control>
</itemlayout>
or <height>auto</height> + <centertop>50%</centertop>
Code:
<itemlayout width="330" height="104">
<control type="textbox">
<centerleft>50%</centerleft>
<centertop>50%</centertop>
<width>310</width>
<height>auto</height>
<align>center</align>
<font>Font_44px</font>
<textcolor>Bright</textcolor>
<label>$INFO[ListItem.Label]</label>
</control>
</itemlayout>
and other combination, but nothing seems to work. What I'm doing wrong? Or is it known issue?
Thanks!