0 Replies Latest reply on Jan 27, 2010 8:31 AM by Daniel Freiman

    DataGroup Scaling

    Daniel Freiman Level 1

      I'm trying to dynamically scale the contents of a DataGroup without scaling the Scroller or padding.  Anyone know how to accomplish this?  (Sample code below)

       

      <ns:Panel width="300" height="300" x="75" y="75">
              <s:Scroller width="100%" height="100%" verticalScrollPolicy="on" horizontalScrollPolicy="on">
                  <s:DataGroup id="group" itemRenderer="{new ClassFactory(Button)}" width="100%" height="100%" clipAndEnableScrolling="true" >
                      <s:layout>
                          <s:VerticalLayout id="vlayout" useVirtualLayout="true" paddingBottom="20" paddingLeft="20" paddingRight="20" paddingTop="20"/>
                      </s:layout>
                      <s:dataProvider>
                          <s:ArrayCollection>
                              <fx:String>test1</fx:String>

                              ...

                          </s:ArrayCollection>
                      </s:dataProvider>
                  </s:DataGroup>
              </s:Scroller>
          </ns:Panel>