Hi, now that I get Jewel DataGrid width and height solved I want to ask about a problem I found while developing it:
At the time the Jewel DataGrid start to be instantiated the DataGridLayout run at the end of the DataGridView's "initComplete" event handler (that I assume is the final point where all should be set and ready. At that time width and percentWidth is not known by the _strand or by internal view components (in this case listArea part or internal column lists). For example width or height could be 0 for each component named before when set up to percentage. Just is a pixel right value when set up to a concrete pixel value. (note: that the problem is really for components that does not define width/height or use % values). So I finally need to use requestAnimationFrame check [1] until I get right values. So that part could be right for JS way of doing things, but I think is a bit of a hack and want to know if other's known a better way to do it. Maybe I need to request a "layoutNeeded" in other place. Thanks [1] https://github.com/apache/royale-asjs/blob/5a73eb51d73f7b5f43df36098518a2af9072ef4f/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/DataGridLayout.as#L111 -- Carlos Rovira http://about.me/carlosrovira
