3 Replies Latest reply on Apr 5, 2011 1:34 PM by Flex harUI

    s:List tileLayout not wrapping

    flairjax

      I have a s:List with a tilelayout, which refuses to wrap its contents until you scroll with the scrollbar.  When the page loads it all the tiles in the tilelayout are shown horizontally until you scroll the horizontal scroll bar then the List redraws or something and then the tiles wrap.

       

      Anyone know what is happening here?

       

       

      <s:Scroller id="alphascroller" top="2" bottom="2" width="100%" height="100%"

                                      minViewportInset="1" hasFocusableChildren="true" verticalScrollPolicy="auto" horizontalScrollPolicy="off" >

                              <s:Group width="100%" height="100%" top="2" bottom="2" left="2" right="2">

                                  <s:List id="srcAlphabeticList" top="2" bottom="2" left="2" right="2" skinClass="com.skins.VCDefaultListSkin"

                                          width="650" height="100%" dataProvider="{compData}" borderColor="#7F7F7F"

                                          allowMultipleSelection="{allowMulti}" labelFunction="list_labelFunc"

                                          change="onItemSelection(event)" selectAll="onItemSelection(event)"

                                          dragStart="onDragStart(event)"

                                          dragDrop="onDragDrop(event)"

                                          dragEnter="onDragEnter(event)"

                                          dragEnabled="{this.draggable}" dragMoveEnabled="{this.draggable}" dropEnabled="{this.draggable}"

                                          itemRenderer="com.renderers.VCSimpleItemRenderer">

       

                                      <s:layout>

                                          <s:TileLayout columnWidth="310" rowHeight="50" verticalGap="0"

                                                        requestedColumnCount="2" orientation="columns"  />

                                      </s:layout>

                                  </s:List>

                              </s:Group>

                          </s:Scroller>