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

DataGroup uses invalid index with filtered Lists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • Adobe Flex SDK Previous
    • None
    • Spark: DataGroup
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. DataProvider with a number of items (20) in a Spark List with filter & sort functions
      2. Rename one of the items

      Actual Results:
      Crashes

      Expected Results:
      Works

      Workaround (if any):
      None

      When I rename an element in the list, the ListCollectionView finds the index of the item in the base collection and dispatches the old/new locations to the DataGroup. However, the DataGroup tries to use the base index as an index into the layout, which contains fewer elements, having been filtered. My guess is that the first 2 lines (layout...) were the cause.

      mx_internal function DataGroup.itemRemoved(...):void
      {
      if (layout)
      layout.elementRemoved(index)
      :

      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: