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

Invalid implementation drawRowBackgrounds function in AdvancedDataGrid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Apache Flex 4.11.0
    • Advanced Data Grid
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Open AdvancedDataGrid.as
      2. Scroll to line 3000 in function "override protected function drawRowBackgrounds():void"
      3. implementation is "drawRowBackground(rowBGs, i++, rowInfo[curRow].y, rowInfo[curRow].height, colors[d - 1], curRow);"
      4. But the last argument "curRow" is not a dataIndex value;

      Actual Results:

      Same as in DataGrid.as

      var actualRow:int = verticalScrollPosition;
      var n:int = contentHolder.listItems.length;

      while (curRow < n)

      { drawRowBackground(rowBGs, i++, contentHolder.rowInfo[curRow].y, contentHolder.rowInfo[curRow].height, colors[actualRow % colors.length], actualRow); curRow++; actualRow++; }

      Where actualRow start index of verticalScrollPosition.

      Expected Results:

      If verticalScrollPosition equals to 41 the dataIndex should equals to 41 as well not to ZERO

      Workaround (if any):

      drawRowBackground(rowBGs, i++, rowInfo[curRow].y, rowInfo[curRow].height, colors[d - 1], actualRow);"

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: