You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Mark Kessler (JIRA)" <ji...@apache.org> on 2013/05/09 02:21:16 UTC
[jira] [Resolved] (FLEX-11456) DataGrid.focusInHandler doesn't work
correctly with a button inside a header renderer
[ 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"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
[Bindable]
protected var aTestData:Array = [{name:"asdf", value:"flkajsdf"}];
]]>
</fx:Script>
<s:layout>
<s:VerticalLayout horizontalAlign="center" verticalAlign="middle" gap="0" />
</s:layout>
<!-- Updated Given test code -->
<mx:DataGrid dataProvider="{aTestData}">
<mx:columns>
<mx:DataGridColumn dataField="name" />
<mx:DataGridColumn dataField="value" />
<mx:DataGridColumn dataField="constructor">
<mx:headerRenderer>
<fx:Component>
<mx:Button label="click me" click="Alert.show('hello, I\'ve been clicked');">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
]]>
</fx:Script>
</mx:Button>
</fx:Component>
</mx:headerRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
</s:Application>
> 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