The Group container must be explicit indicated width and height.
the group can't use relative properties to set its size.
 
this is the code :
 
 <s:List left="0" right="0" top="0" bottom="0" dataProvider="{new 
ArrayList([1,2,3,4,5,6,7])}" verticalScrollPolicy="off">
  <s:layout>
   <s:HorizontalLayout gap="8" columnWidth="200"/> // columnWidth is not useful 
~
  </s:layout>
  <s:itemRenderer>
   <fx:Component>
   // <s:Group left="0" right="0" top="0" bottom="0"> // the group will never 
show
     <s:Group width="300" height="400"> // I have to set the width and height 
explicit but it can't adapt all the kinds of device screen
     <s:Rect left="0" right="0" top="0" bottom="0">
      <s:fill>
       <s:SolidColor color="0x381128" />
      </s:fill>
     </s:Rect>
    </s:Group>
   </fx:Component>
  </s:itemRenderer>
 </s:List>

Reply via email to