0
Beantwoord

Top most item in list

Damian Hartin 6 jaar geleden in iRidium Script bijgewerkt door Sergey (expert) 6 jaar geleden 2
Hi,
I have a static list with 16 items in it and am looking for a List API property that will tell me what the top most item is. i.e. so I can work out if items 2-8 are showing or items 4-12, etc..

Have looked in the documentation and cant see any property/method, is there one available?

Thanks,
Damian
Beantwoord
Hi Damian,
you can get value from X or Y property of the popups (relative of direction). if property value in the list range area then popup is showing.

IR.SetInterval(1000, function() {
   var List = IR.GetItem("PopupWithList").GetItem("ListName");
if (IR.GetItem("PopupName").X + IR.GetItem("PopupName").Width < List.X)
{
// Popup is not showing
} else {
// Popup is showing
} });