Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
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);"