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

Peter Ent reassigned FLEX-35237:
--------------------------------

    Assignee: Peter Ent

> DataGridLayout is broken when used inside <js:beads/>
> -----------------------------------------------------
>
>                 Key: FLEX-35237
>                 URL: https://issues.apache.org/jira/browse/FLEX-35237
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FlexJS
>    Affects Versions: Apache FlexJS 0.7.0, Apache FlexJS 0.8.0
>            Reporter: Pan Li
>            Assignee: Peter Ent
>            Priority: Critical
>         Attachments: DataGridLayout.patch, 
> ModifiedDataGridExampleForReproducingProblem.zip
>
>
> DataGridLayout doesn't work if it is added to <js:beads> of controls, but it 
> does work if the datagrid doesn't use any layout (thus it uses default one in 
> css). 
> To reproduce the problem:
> Take the SDK's datagrid sample, change
> DataGridPercentageLayout to
> <js:DataGridLayout />
> running the updated code in js mode, the application fails with javascript 
> error:
> {code}
> TypeError: this._header is undefined[Learn More]  DataGridLayout.js:81:5
>       org.apache.flex.html.beads.layouts.DataGridLayout.prototype.layout 
> file:///Users/lipan/Downloads/DataGridExampleTest/bin/js-debug/org/apache/flex/html/beads/layouts/DataGridLayout.js:81:5
>       
> org.apache.flex.html.beads.layouts.DataGridLayout.prototype.handleSizeChanges 
> file:///Users/lipan/Downloads/DataGridExampleTest/bin/js-debug/org/apache/flex/html/beads/layouts/DataGridLayout.js:130:3
>       bound  self-hosted
>       goog.events.EventTarget.prototype.fireListeners 
> file:///Users/lipan/Downloads/DataGridExampleTest/bin/js-debug/library/closure/goog/events/eventtarget.js:284:12
>       goog.events.EventTarget.dispatchEventInternal_ 
> file:///Users/lipan/Downloads/DataGridExampleTest/bin/js-debug/library/closure/goog/events/eventtarget.js:381:12
>       goog.events.EventTarget.prototype.dispatchEvent 
> file:///Users/lipan/Downloads/DataGridExampleTest/bin/js-debug/library/closure/goog/events/eventtarget.js:196:10
>       org.apache.flex.events.EventDispatcher.prototype.dispatchEvent 
> file:///Users/lipan/Downloads/DataGridExampleTest/bin/js-debug/org/apache/flex/events/EventDispatcher.js:67:12
>       org.apache.flex.core.ElementWrapper.prototype.dispatchEvent 
> file:///Users/lipan/Downloads/DataGridExampleTest/bin/js-debug/org/apache/flex/core/ElementWrapper.js:211:12
>       org.apache.flex.html.beads.DataGridView.prototype.createLists 
> file:///Users/lipan/Downloads/DataGridExampleTest/bin/js-debug/org/apache/flex/html/beads/DataGridView.js:182:3
>       
> org.apache.flex.html.beads.DataGridView.prototype.handleDataProviderChanged 
> file:///Users/lipan/Downloads/DataGridExampleTest/bin/js-debug/org/apache/flex/html/beads/DataGridView.js:131:5
>       bound  self-hosted
>       org.apache.f
> {code}
> check attachment for updated DataGridExample code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to