3 Replies Latest reply on Jun 3, 2010 7:44 AM by TeotiGraphix

    Flex 4/Spark List control layout questions

    jsd99 Level 3

      Question 1:

      I have a spark List control.  I want it to stretch each item in the list so the entire list fills up 100% of the width.  How do I do this?  I tried setting the List's width to 100%, the HorizontalLayout variableColumnWidth="true" and the itemRenderer's width to 100% but it doesn't work.  Each item remains at the minimum width needed to show the content.

       

      Question 2:
      I have a spark List control.  I want to center each itemRenderer within the allocated list space.  Each item is in a VBox (I've also tried VGroup) with horizontalAlign="center" and verticalAlign="middle".  It doesn't work.  Each item appears at the top left of the list cell.