Kodi Community Forum

Full Version: Grouplist Container.HasNext always is True if elements have auto height value
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Container.HasNext is always set to True when the textbox has set the height to auto. HasPrevious works well.
The pagecontrol scrollbar has no issues to recognize when the end of the grouplist is reached.

Example:

Code:
            <control type="grouplist" id="10">
                <centerleft>50%</centerleft>
                <centertop>50%</centertop>
                <width>788</width>
                <height>452</height>
                <align>left</align>
                <autoscroll>false</autoscroll>
                <orientation>vertical</orientation>
                <itemgap>5</itemgap>
                <pagecontrol>3000</pagecontrol>
                <control type="textbox">
                    <width>788</width>
                    <height min="50">auto</height>
                    <align>left</align>
                    <font>Reg36Spaced</font>
                    <autoscroll>false</autoscroll>
                    <textcolor>ffdadada</textcolor>
                    <label>[B][COLOR ffffffff]$INFO[Control.GetLabel(1),,[CR]][/B][/COLOR]</label>
                    <visible>IsEmpty(Window(home).Property(NoLabel))</visible>
                </control>
                <control id="5" type="textbox">
                    <centerleft>50%</centerleft>
                    <centertop>50%</centertop>
                    <width>788</width>
                    <height>auto</height>
                    <align>left</align>
                    <font>Reg36Spaced</font>
                    <textcolor>ffdadada</textcolor>
                    <autoscroll>false</autoscroll>
                </control>
            </control>


Edit:
Maybe adding the info bool HasNext and HasPrevious to the scrollbar control would be useful for such cases?

Edit2:
Also noticed that Container.HasPrevious and Container.CurrentPage is returning False/Page#1 even if the textbox is on page 2 in some cases.