Tuesday, March 29, 2011

Autosizing of the DataGroup component

After unsuccessfully trying to use the Spark List component in combination with a TileLayout I decided to try it in combination with the DataGroup component. This worked fine apart from the fact that the DataGroup didn't auto-size correctly.

The following trick solved the problem:

<s:DataGroup
   id="lst"
   width="{lst.contentWidth}"
   height="{lst.contentHeight}">

No comments: