Bug FIXED: Fade label controls align suddenly not working anymore
#1
Hello there,

I'm currently porting over the OSMC Skin to v21 Omega and a strange thing has shown up: Suddenly fade label controls that I used an <align>right</align> tag with are interpreting the align tag in a weird way.
I understand that, although the wiki doesn't mention the align tag for the fade label, the functionality has been added way back and hasn't been removed since: fixed: <align>center</align> and <align>right</align> weren't working for single-label fadelabels The code is still present in the current master branch: GUIFadeLabelControl.cpp

A code example from the OSMC Skin:
xml:
<control type="fadelabel">
   <width>200</width>
   <height>36</height>
   <align>right</align>
   <font>Font36</font>
   <label>557</label>
   <textcolor>$VAR[TextColorNF]</textcolor>
</control>

This very control used to be rendered aligned to the right and with scrolling under v20:
Image

And now the very same code produces this on screen under Beta 2 of v21:
Image

Am I doing something wrong or might this be a bug?
OSMC Skinner      |    The OSMC Skin for Kodi v20 Nexus (native 16:9, 21:9 and 4:3 skin, special cinemascope/CIH version available)      |     GitHub: https://github.com/Ch1llb0/skin.osmc
Reply
#2
I have experienced something similar with normal labels, the problem is always when <align>right</align> is used.
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#3
I've opened a Git issue regarding this: https://github.com/xbmc/xbmc/issues/24246
OSMC Skinner      |    The OSMC Skin for Kodi v20 Nexus (native 16:9, 21:9 and 4:3 skin, special cinemascope/CIH version available)      |     GitHub: https://github.com/Ch1llb0/skin.osmc
Reply
#4
This is now fixed with #24266. Thank you, @CastagnaIT! 🙏🏻
OSMC Skinner      |    The OSMC Skin for Kodi v20 Nexus (native 16:9, 21:9 and 4:3 skin, special cinemascope/CIH version available)      |     GitHub: https://github.com/Ch1llb0/skin.osmc
Reply

Logout Mark Read Team Forum Stats Members Help
FIXED: Fade label controls align suddenly not working anymore0