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

[flex_next] Single pixel scrolls can cause getItemIndicesInView to return incorrect values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • 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.Import the attached .fxp file into Flash Builder i6(it is a mobile flex project)
      2.Run on desktop or device, in debug mode to see trace statements
      3.Scroll the hour list to a number
      4. When the list has stopped scrolling, listStoppedScrolling will be called in ListPicker.mxml. The function will center the list on a value, and then newValueChosen will be called
      5. In newValueChosen function, I get the list of indices on view, var indices:Vector.<int> = list.dataGroup.getItemIndicesInView();

      Actual Results:

      list.dataGroup.getItemIndicesInView(); returns a list containing 4 values, even though 3 values are on display. (in Flex Hero that was shipped with Burrito, 3 values were correctly returned).

      Expected Results:

      list.dataGroup.getItemIndicesInView(); should return a list containing only the 3 indices on display.

      Workaround (if any):

      Use the firstIndexInView and lastIndexInView properties of the layout instead of dataGroup.getItemIndiciesInView().

      None

      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: