Disable scrolling for text
#1
I've found it impossible to disable scrolling for a focused title. Supposedly, it defaults to false, and as far as I've looked, there is not a single "scroll" reference in any .xml file on the skin I'm modifying (I've, in fact, removed almost all those, as I don't like to use variables). Yet, it keeps scrolling. The most confusing part is <scrollspeed> and <scrollsuffix> work!

Segment in question:

xml:

                        <control type="label">
                            <top>70</top>
                            <left>225</left>
                            <width>600</width>
                            <height>200</height>
                            <font>Bold42</font>
                            <textcolor>FF000000</textcolor>
                            <label>$INFO[ListItem.OriginalTitle]</label>
                            <scroll>false</scroll>
                        </control>

Entire code of the view:

xml:

<?xml version="1.0" encoding="UTF-8"?>
<includes>
    <include name="Viewtype_50_List">
        <control type="group">
            <visible>Control.IsVisible(50)</visible>
            <control type="fixedlist" id="50">
                <width>1920</width>
                <height>1080</height>
                <onup>50</onup>
                <ondown>50</ondown>
                <focusposition>3</focusposition>
                <orientation>vertical</orientation>
                <itemlayout height="150" width="1920">
                    <control type="image">
                        <left>100</left>
                        <top>30</top>
                        <width>100</width>
                        <height>100</height>
                        <aspectratio>keep</aspectratio>
                        <texture>$INFO[ListItem.Icon]</texture>
                    </control>
                    <control type="label">
                        <top>70</top>
                        <left>225</left>
                        <width>600</width>
                        <height>150</height>
                        <font>Reg36</font>
                        <textcolor>FF000000</textcolor>
                        <label>$INFO[ListItem.OriginalTitle]</label>
                    </control>
                    <control type="image">
                        <left>30</left>
                        <top>70</top>
                        <height>25</height>
                        <aspectratio>keep</aspectratio>
                        <texture>$INFO[ListItem.UserRating,rating/,.png]</texture>
                    </control>
                    <control type="label">
                        <left>1100</left>
                        <width>600</width>
                        <height>150</height>
                        <font>Light36</font>
                        <textcolor>FF9B9B9B</textcolor>
                        <label>$INFO[ListItem.Director]</label>
                    </control>
                    <control type="label">
                        <left>1650</left>
                        <width>250</width>
                        <height>150</height>
                        <font>Light36</font>
                        <textcolor>FF9B9B9B</textcolor>
                        <label>$INFO[ListItem.Year]</label>
                    </control>
                    <control type="image">
                        <bottom>0</bottom>
                        <left>115</left>
                        <width>87%</width>
                        <height>1</height>
                        <aspectratio>stretch</aspectratio>
                        <texture>views/separator.png</texture>
                    </control>
                </itemlayout>

                <focusedlayout height="200" width="1920">
                    <control type="group">
                        <control type="image">
                            <texture>views/rectangle_shadow.png</texture>
                        </control>
                        <control type="image">
                            <left>115</left>
                            <top>60</top>
                            <width>75</width>
                            <height>75</height>
                            <aspectratio>keep</aspectratio>
                            <texture background="true">$INFO[ListItem.Icon]</texture>
                        </control>
                        <control type="label">
                            <top>70</top>
                            <left>225</left>
                            <width>600</width>
                            <height>200</height>
                            <font>Bold42</font>
                            <textcolor>FF000000</textcolor>
                            <label>$INFO[ListItem.OriginalTitle]</label>
                        </control>
                        <control type="image">
                            <left>30</left>
                            <top>70</top>
                            <height>30</height>
                            <aspectratio>keep</aspectratio>
                            <align>left</align>
                            <texture>$INFO[ListItem.UserRating,rating,.png]</texture>
                        </control>
                        <control type="label">
                            <left>1100</left>
                            <width>600</width>
                            <height>200</height>
                            <font>Light42</font>
                            <textcolor>FF9B9B9B</textcolor>
                            <label>$INFO[ListItem.Director]</label>
                        </control>
                        <control type="label">
                            <left>1650</left>
                            <width>250</width>
                            <height>200</height>
                            <font>Light42</font>
                            <textcolor>FF9B9B9B</textcolor>
                            <label>$INFO[ListItem.Year]</label>
                        </control>
                    </control>
                </focusedlayout>
            </control>
        </control>
    </include>
</includes>
Reply
#2
Scroll defaults to true for focusedlayout. However, using <scroll>false</scroll> works perfectly fine for me on Krypton.

I noticed that in your full code snippet you haven't included <scroll>false</scroll> in your label controls. Check that you have actually included it in your code!

BTW, default settings for controls are normally included in the Defaults.xml file.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#3
Are you sure it work for focused layout, though? It seems someone reported how it actually doesn't work for focused layout back in 2010, but maybe no one ever submitted the ticket for it and it never got implemented. I'm running Leia by the way.
Good catch about not including it, because I in fact didn't since I thought it defaulted to false. I've now included it there (which obviously I had done for testing before too), but it still scrolls.
Nothing on Defaults.xml (I've actually removed that file entirely, lol... yes, bad practice, I know).
Reply
#4
Make it a fadelabel with <scroll>false</scroll> to solve the problem.
Reply
#5
(2018-06-05, 15:05)firewater Wrote: Are you sure it work for focused layout, though? It seems someone reported how it actually doesn't work for focused layout back in 2010, but maybe no one ever submitted the ticket for it and it never got implemented. I'm running Leia by the way.
Good catch about not including it, because I in fact didn't since I thought it defaulted to false. I've now included it there (which obviously I had done for testing before too), but it still scrolls.
Nothing on Defaults.xml (I've actually removed that file entirely, lol... yes, bad practice, I know).

Yep, I'm 100% sure it works for me.

Here is a normal label control with <scroll>false</scroll> inside the focusedlayout of a fixedlist on Krypton:
Image


EDIT: Just tested on Leia and, yes, you are right - looks like it isn't working on Leia.
Might be related to this:
https://forum.kodi.tv/showthread.php?tid=330696

You can test if it is related to those changes by seeing if it worked on the nightlies before those changes were added. Those old nightlies are available from this post: https://forum.kodi.tv/showthread.php?tid...pid2723928

If it works properly on the old nightlies, please report it in that thread so that ksooo can look into a fix. Otherwise, if it doesn't work in the old nightlies, then please file a trac bug report as this is definitely a regression for a bug that was previously fixed: https://trac.kodi.tv/
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#6
Thanks much, that works! I also had to add <textwidth> for the text to truncate like th...

edit: just saw the other comment. I'll test how it goes with the older method using the old nightly build, but the Windows link on the post doesn't have it so I don't know where to get it.
Reply

Logout Mark Read Team Forum Stats Members Help
Disable scrolling for text0