2010-12-12, 16:33
i'm using this code to wrap long labels onto two lines:
the height value is set correctly for allowing exactly two lines.
while this works fine in most cases, there are a few exceptions....
'Pirates of the Caribbean: The Curse of the Black Pearl'
is correctly wrapped onto two lines:
but 'Pirates of the Caribbean: Dead Man's Chest'
gets incorrectly wrapped onto three lines:
by examining the exceptions, it looks like xbmc thinks,
hey...if there's only one more word to go at the end of the second line,
i'm gonna use three lines anyway....
...and if there's two or more words left, i'll stick with two lines.
should i create a ticket for this, or learn to live with it?
Code:
<control type="label">
<posx>448</posx>
<posy>80</posy>
<width>490</width>
<height>88</height>
<label>$INFO[ListItem.Label]</label>
<font>font-44c</font>
<aligny>top</aligny>
<wrapmultiline>true</wrapmultiline>
</control>
the height value is set correctly for allowing exactly two lines.
while this works fine in most cases, there are a few exceptions....
'Pirates of the Caribbean: The Curse of the Black Pearl'
is correctly wrapped onto two lines:
but 'Pirates of the Caribbean: Dead Man's Chest'
gets incorrectly wrapped onto three lines:
by examining the exceptions, it looks like xbmc thinks,
hey...if there's only one more word to go at the end of the second line,
i'm gonna use three lines anyway....
...and if there's two or more words left, i'll stick with two lines.
should i create a ticket for this, or learn to live with it?