Kodi Community Forum
Changing size dependent on content? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Changing size dependent on content? (/showthread.php?tid=28451)



Changing size dependent on content? - radio - 2007-09-10

Is it possible to change the size of X dependent on Y?
I'd like the width of the bg image of a focused item in a list to match the lenght of the text.

e.g. if the |'s are the sides of a texture, I'd like a list to look like this:

Code:
| Desperate housewives |
| Doctor Who |
| Firefly |

instead of this:

Code:
| Desperate housewives |
| Doctor Who           |
| Firefly              |

But I cant seem to find a way to say something like:
[HTML]
<control type="list" id="50">
...
<itemlayout height="29">
<control type="label">
<posx>0</posx>
<posy>0</posy>
<width>LengthOfTheString</width>
<height>22</height>
<info>ListItem.Label</info>
</control>
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>WidthOFTheLabel</width>
<height>22</height>
<texture>atexture.png</texture>
</control>

[/HTML]

Can it be done?


- Jezz_X - 2007-09-10

no not possible


- radio - 2007-09-11

boo.

I'll go write a feature req. Wink