2017-09-06, 13:10
Hello!
I was detected some bug with embedded function of ListControl - getSelectedPosition().
In some situations this function can to return invalid selected position.
For example, ListControl is filling by some values in total count of 20 items. I select item with number 20 and then I call reset(). Then I fill ListControl with new items, call:
self.listControl.selectItem(0)
self.listControl.getListItem(0).select(True)
and even after that getSelectedPosition() return 20.
I was detected some bug with embedded function of ListControl - getSelectedPosition().
In some situations this function can to return invalid selected position.
For example, ListControl is filling by some values in total count of 20 items. I select item with number 20 and then I call reset(). Then I fill ListControl with new items, call:
self.listControl.selectItem(0)
self.listControl.getListItem(0).select(True)
and even after that getSelectedPosition() return 20.