You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Mark Saunders (JIRA)" <ji...@apache.org> on 2013/12/11 15:29:06 UTC

[jira] [Created] (FLEX-33990) RTE in AdvancedDataGridBase drawItem

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];
			r.validateDisplayList();
            updateDisplayOfItemRenderer(r);
        }



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)