Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-23759

setElementIndex should only execute if requested index is different from current

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Spark: Group
    • 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.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: