flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Saunders (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-33990) RTE in AdvancedDataGridBase drawItem
Date Wed, 11 Dec 2013 14:29:06 GMT
Mark Saunders created FLEX-33990:

             Summary: RTE in AdvancedDataGridBase drawItem
                 Key: FLEX-33990
                 URL: https://issues.apache.org/jira/browse/FLEX-33990
             Project: Apache Flex
          Issue Type: Bug
          Components: ADG:Display
    Affects Versions: Apache Flex 4.11.0
         Environment: Windows 7, Flashbuilder 4.7 (probably irrelevant)
            Reporter: Mark Saunders
            Priority: Minor
             Fix For: Adobe Flex SDK Next

The method drawItem() (line 897 of AdvancedDataGridBase) was modified in 4.11.  Line 916 was
added:  r.validateDisplayList();
The issue is that r is null.  in the for loop, n is the length of visible columns, while r
is derived from listitems[row][i].  the listItems inner array [i] only contains cusom itemrenderers
and is therefore a subset of the optimumColumns (visible columns).  I think an if(r) check
will fix the issue.

var n:int = optimumColumns.length;
 for (var i:int = 0; i < n; i++)
            var r:IListItemRenderer = listItems[rowIndex][i];

This message was sent by Atlassian JIRA

View raw message