5 Replies Latest reply on May 11, 2011 9:49 AM by Sach12345

    Spark Layout Question

    Sach12345

      Hi,

       

      I am experimenting with Spark Layouts and this what I have

       

      <s:List id="list" height="123" verticalCenter="0" dataProvider="{itemList}"
                       itemRenderer="MyRenderer" width="350" horizontalCenter="0" depth="100">
              <s:layout>
                  <layouts:CircularLayout id="myLayout" />
              </s:layout>
          </s:List>

       

      In updateDisplayList of CircularLayout.as

       

      var layoutTarget:DataGroup = target as DataGroup;
      for(var i:int = 0; i < target.numElements; i++)
      {
           var element:IVisualElement = layoutTarget.getElementAt(i) as IVisualElement;

      }

       

      element is null.

       

      I am using Flex 4.5 SDK

       

      Any ideas why this could happen?

       

      Thanks