Question about textbox auto height
#1
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?
Reply
#2
Could well be a bug. Will check the code.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Thanks mate.
Reply
#4
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
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
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.
Reply
#6
http://mirrors.xbmc.org/test-builds/win3...ht_fix.exe

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
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!
Reply
#8
Please test other textboxes thoroughly to make sure there's no issues. Thanks!
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Question about textbox auto height0