Welcome, Guest
  • Author Topic: Adding top margin at the First Item from sparks List components  (Read 1581 times)

    papachan

    • Systems Administrator
    • *****
    • Posts: 507
      • View Profile
      • Air Flex Developer
    Hey guys,

    Did you have noticed how i can add a margin top on a Sparks Skins List Components? I i use the correct syntax

    <s:layout>
        <s:Verticallayout paddingTop="10" />
    </s:layout>

    But this code, only add Padding top on the list item not on the first composant.

    any idea welcome  ???
    ---
    dan

    papachan

    • Systems Administrator
    • *****
    • Posts: 507
      • View Profile
      • Air Flex Developer
    Fortunately, I have found it.  ;D

    <s:DataGroup itemRenderer="ListPostRenderer" verticalCenter="0"
        x.normal="0" y.normal="5" x.disabled="0" y.disabled="10" id="dataGroup"
         height="205" clipAndEnableScrolling="true">
             <s:layout>
                <s:VerticalLayout gap.normal="0" paddingTop="10"/>
             </s:layout>
    </s:DataGroup>