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

Invalid implementation drawRowBackgrounds function in AdvancedDataGrid

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Adobe Flex SDK Previous
    • Fix Version/s: Apache Flex 4.11.0
    • Component/s: Advanced Data Grid
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: