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

TileList controls don't allow selection of items with the same toString() value as later items in the list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: TileList
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Verified in SDK 3.3 and 4.0

      Steps to reproduce:
      1. Create a class with a toString() method that returns the string "foo"
      2. Create an ItemRenderer for this class
      3. Add a nuber of instances to a TileList

      Actual Results:
      When mousing over any item, the last item in the list becomes highlighted, and when clicking on any it is the last item that is selected.

      Workaround (if any):
      Ensure that the toString() result is unique

      My theory for why this mappens is that the ListBase class contains a number of maps defined as e.g.
      protected var rowMap:Object = {};
      Where objects are used as keys. Since Object-based hash maps require String keys, the VM converts the object key into a string usint key.toString(). A Dictionary should be used instead.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: