[ 
https://issues.apache.org/jira/browse/PIVOT-1028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16357511#comment-16357511
 ] 

Roger Whitcomb commented on PIVOT-1028:
---------------------------------------

The solution appears to be to reset the "highlightIndex" in TerraListViewSkin 
when items are removed, or the data list is cleared:

Sending wtk-terra\src\org\apache\pivot\wtk\skin\terra\TerraListViewSkin.java
Transmitting file data .done
Committing transaction...
Committed revision 1823598.

> When SuggestionPopup data changes and an item beyond the new length was 
> highlighted, an IndexOutOfBounds is thrown
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-1028
>                 URL: https://issues.apache.org/jira/browse/PIVOT-1028
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 2.1, 2.0.5
>            Reporter: Roger Whitcomb
>            Assignee: Roger Whitcomb
>            Priority: Minor
>             Fix For: 2.1
>
>
> One way to reproduce is to have a long SuggestionPopup list of suggestions, 
> then move the mouse to a selection down in the list, so it is highlighted, 
> then type something in the attached TextInput so that the list is shorter, 
> then move the mouse out of the suggestion list:  an IndexOutOfBoundsException 
> will be thrown with the error being the old "highlightIndex" of 
> TerraListViewSkin being out of range of the new list data length.
> Appears to only happen if "variableItemHeight" is set true, which is the 
> default for the ListView created by TerraSuggestionPopupSkin.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to