Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Language Found: English
Description
The current setElementIndex implementation in Group (and possibly other components as well) does not check to see if it actually changing the index:
public function setElementIndex(element:IVisualElement, index:int):void
{
// check for RangeError...this is done in addItemAt
// but we want to do it before removing the element
checkForRangeError(index);
removeElement(element);
addElementAt(element, index);
}
This function call takes nearly 200 ms to run in my application and the index is the same. I am now adding my own logic in to stop this. This should be handled by group though.