Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1816

FixedList Control : Unexpected variation in initial scroll position

$
0
0
Expected Behavior : When Kodi(18) starts, fixed lists are scrolled to the first item in the list.

Observed Behavior : Fixedlists are scrolled to a random position when Kodi starts. The scroll position is not consistent but varies on restart.

Demonstration (GIF): On most of the lists, posters appear to the left of the white focus rectangle.
Image

Identified causes : Fixedlist is set to random sorting as follows :
<content sortby="random" target="$PARAM[widget_target]">$PARAM[content_path]</content>

The smart playlist that is the source of the dynamic content:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name>Comedy movies</name>
    <match>all</match>
    <rule field="genre" operator="is">
        <value>Comedy</value>
    </rule>
    <order direction="descending">random</order>
</smartplaylist>

Remarks:
I've used Estuary skin as a starting point.
I'm not using nor have I been able to identify any relevant uses of "Control.Move" or "Control.SetFocus" functions.
If the skin is reloaded using the "ReloadSkin()", after Kodi has started, the fixedlist scroll position are reset to the first item in the list.
The essential structure of the controls is as follows :
Image

Question : Is this the expected behavior; can I avoid it somehow?

Thanks

Viewing all articles
Browse latest Browse all 1816

Trending Articles