[ 
https://issues.apache.org/jira/browse/FLEX-32948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Mclean resolved FLEX-32948.
----------------------------------

       Resolution: Fixed
    Fix Version/s: Apache Flex 4.11.0

Checked into develop branch.
                
> Invalid implementation drawRowBackgrounds function in AdvancedDataGrid
> ----------------------------------------------------------------------
>
>                 Key: FLEX-32948
>                 URL: https://issues.apache.org/jira/browse/FLEX-32948
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Advanced Data Grid
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>             Fix For: Apache Flex 4.11.0
>
>
> 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);"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to