Kodi Community Forum

Full Version: Question about textbox auto height
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I seem to be stumbling on an issue with the textbox's auto height feature. It seems to clip text when the font uses <linespacing> tag. Here's a couple examples with and without <linespacing> included.

With <linespacing>:

Image

Without <linespacing>:

Image

Code for the textbox:

Code:
<control type="textbox">                
    <width>320</width>
    <height min="48" max="200">auto</height>
    <label>$VAR[NowPlaying_First_Label]</label>
    <textcolor>Label_Normal</textcolor>
    <font>Fullscreen-Info-Large</font>
    <aligny>top</aligny>
    <autoscroll>false</autoscroll>            
</control>

Code for the font:

Code:
<font>
    <name>Fullscreen-Info-Large</name>
    <filename>SegoeWP-Bold.ttf</filename>
    <size>36</size>
    <style>uppercase</style>
    <linespacing>0.65</linespacing>
</font>

Can anyone confirm possible bug or maybe I'm doing something wrong?
Could well be a bug. Will check the code.
Thanks mate.
The potential fix is here:

https://github.com/jmarshallnz/xbmc/tree...height_fix

This needs thorough testing - I've got some builds queued up (based on Helix, so remember to use portable mode if you don't want to jump to Helix just yet).

Cheers,
Jonathan
Hey Jmarshall, any chance for a win32 build of the fix to test? I guess Jenkins failed to build one - I see one for OSX.
Did a cursory test and things seem to be working as expected now. Haven't run into any issues so far. All seems good to go.

Thanks for that!
Please test other textboxes thoroughly to make sure there's no issues. Thanks!