Hi all,
I'm using UIPopUpList with some item (item1,item2,item3).
I have the necessity to show popup with the value set to empty, the first time that I show this control.
I set UIPopUpList.value="" and works fine, but the when i click on popup to make a choice, Highlight sprite is shown outside item list area.
I have looked UIPopUpList.cs code at Onclick method, and I understand that happen because empty value doesn't matches any values in item list.
TO solve this I have modified script in this way
// Move the selection here if this is the right label
if (mSelectedItem == s || i==0)
Highlight (lbl, true);
adding OR with i variable , I highlight the first item if there isn't correspondence with popup value and popup list.
it is the correct way or is there another solution?
Thanks