flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Kessler (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-11456) DataGrid.focusInHandler doesn't work correctly with a button inside a header renderer
Date Thu, 09 May 2013 00:21:16 GMT

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

Mark Kessler resolved FLEX-11456.

    Resolution: Cannot Reproduce
      Assignee: Mark Kessler

Using below test application cannot reproduce issue.  It must have been resolved in a previous
version of the SDK.

<?xml version="1.0" encoding="utf-8"?>
   Test application
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

        protected var aTestData:Array = [{name:"asdf", value:"flkajsdf"}];


        <s:VerticalLayout horizontalAlign="center" verticalAlign="middle" gap="0" />

    <!-- Updated Given test code -->
    <mx:DataGrid dataProvider="{aTestData}">

            <mx:DataGridColumn dataField="name" />
            <mx:DataGridColumn dataField="value" />

            <mx:DataGridColumn dataField="constructor">
                        <mx:Button label="click me" click="Alert.show('hello, I\'ve been

                                import mx.controls.Alert;


> DataGrid.focusInHandler doesn't work correctly with a button inside a header renderer
> -------------------------------------------------------------------------------------
>                 Key: FLEX-11456
>                 URL: https://issues.apache.org/jira/browse/FLEX-11456
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: DataGrid
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Browser: Firefox 2.x
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Mark Kessler
> Steps to reproduce:
> 1. create a DataGrid with a custom header renderer that contains a button
> 2. run the app
> 3. click the button
>  Actual Results:
>  Runtime error on line 3909 of DataGrid.as trying to dereference pos.y, when pos is null,
presumably because of an invalid cast in the line above.  For some reason, 'target' is assumed
to be the item renderer (an IListItemRenderer), but it is actually the DataGrid itself.
>  Expected Results:
>  no error

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

View raw message