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

Setting new itemRenderer on spark List with empty dataProvider do not clears freeRenderers array in List's dataGroup

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1. Create List with custom itemRenderer and set data provider with some objects to it;
      2. Reset List's dataProvider to empty one;
      3. Change List's itemRenderer to a new one;
      4. Reset List's dataProvider to one with some objects in it;

      Actual Results:
      itemRenderers from step #1 is used instead of itemRenderers from step #3

      Expected Results:
      itemRenderers from step #3 should be used

      Workaround (if any):
      1. Extend List, import and use mx_internal namespace;
      2. Override itemRenderer setter and set up boolean flag in it along with setting super.itemRenderer;
      3. In commitProperties method before calling super.commitProperties() check for boolean flag and dataGroup and if check is passed call dataGroup.clearFreeRenderers()

      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: