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

DataGroup.getItemIndicesInView() returns indices that are not in view

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1. Compile and run the following application:

      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark">

      <s:List left="0" right="0" id="itemList" click="trace(itemList.dataGroup.getItemIndicesInView())">
      <s:itemRenderer>
      <fx:Component>
      <s:ItemRenderer width="200" height="100">
      <s:Button label="

      {itemIndex}

      " width="100%" height="100%" />
      </s:ItemRenderer>
      </fx:Component>
      </s:itemRenderer>
      <s:layout>
      <s:HorizontalLayout gap="0"/>
      </s:layout>
      <s:dataProvider>
      <s:ArrayList>
      <s:source>
      [0,1,2,3,4,5,6,7]
      </s:source>
      </s:ArrayList>
      </s:dataProvider>
      </s:List>

      </s:WindowedApplication>

      2. Scroll to the right such that item 2 and item 4 are in view (but 5 is not)
      3. Click on one of the buttons

      Actual Results:

      trace output: 2,3,4,5

      Expected Results:

      trace output: 2,3,4

      Workaround (if any):

      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: