Sranshaft / skin.immersive

A skin for Kodi using Microsoft's Universal Windows Application design guidelines
Other
40 stars 17 forks source link

Fake section of grid view shows last and first item but main section shows only last item. #10

Closed henkdevries closed 10 years ago

henkdevries commented 11 years ago

When there is an odd number of items, the fake section of both grid views shows the last and the first item: screenshot001

But when you scroll to the right only the last item is shown in the regular view and the first item has disappeared: screenshot002

henkdevries commented 11 years ago

Because you can't use IsEmpty or StringCompare on Skin Variables the only way I've been able to fix this for the Episode Grid View is by adding the following monstrous visible condition to the last group control

<visible>[StringCompare(Container(56).Position,0) + !IsEmpty(Container(56).ListItemNoWrap(5).Label)] | [StringCompare(Container(56).Position,1) + !IsEmpty(Container(56).ListItemNoWrap(4).Label)] | [StringCompare(Container(56).Position,2) + !IsEmpty(Container(56).ListItemNoWrap(3).Label)] | [StringCompare(Container(56).Position,3) + !IsEmpty(Container(56).ListItemNoWrap(2).Label)]</visible>

The solution for the normal Grid View is similar but even bigger.