Apache flex 带完全装饰器的IconItemRenderer

Apache flex 带完全装饰器的IconItemRenderer,apache-flex,decorator,iconitemrenderer,Apache Flex,Decorator,Iconitemrenderer,最近我刚开始使用Flex。我有一个问题。基本上,我有IconItemRender decorator的列表。但它还没有满 我怎样才能让它充满。附件是图像差异。左边的是我所做的。右边是我想做的 编辑: 你能发布一些代码吗?@Nick我已经附上了代码。@用户查看paddingTop和相关样式。还可以尝试将垂直间隙设置为0。@Brian谢谢,我已经用 <s:ArrayCollection id="acMainMenu"> <fx:Object mainMenu

最近我刚开始使用Flex。我有一个问题。基本上,我有IconItemRender decorator的列表。但它还没有满

我怎样才能让它充满。附件是图像差异。左边的是我所做的。右边是我想做的

编辑:


你能发布一些代码吗?@Nick我已经附上了代码。@用户查看paddingTop和相关样式。还可以尝试将垂直间隙设置为0。@Brian谢谢,我已经用
    <s:ArrayCollection id="acMainMenu">
        <fx:Object mainMenuLabel="menu 1" icon="data/pics/menu_icon_1.png" decorator="data/pics/menu_side_1.png"/>
        <fx:Object mainMenuLabel="menu 2" icon="data/pics/menu_icon_2.png" decorator="data/pics/menu_side_2.png"/>
        <fx:Object mainMenuLabel="menu 3" icon="data/pics/import_icon.png" decorator="data/pics/menu_side_3.png"/>
        <fx:Object mainMenuLabel="menu 4" icon="data/pics/export_icon.png" decorator="data/pics/menu_side_4.png"/>  
        <fx:Object mainMenuLabel="menu 5" icon="data/pics/menu_icon_5.png" decorator="data/pics/menu_side_5.png"/>
    </s:ArrayCollection>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>

<s:Group>
    <s:Rect x="0" y="-1" width="774" height="1005">
        <s:fill>
            <s:SolidColor color="#D31145" />
        </s:fill>
    </s:Rect>
    <!--[#26ABE4, #F79820, #F65AAE, #C1D832, #FAFA44]-->
<s:List id="mylist" y="-1" width="222" height="668" alternatingItemColors="#FFFFFF"
        change="mylist_changeHandler(event)" color="#424242" contentBackgroundColor="#F5F5F5"
        dataProvider="{acMainMenu}" fontWeight="bold" horizontalCenter="-269" textAlign="start">
    <s:itemRenderer>
        <fx:Component>
            <s:IconItemRenderer 
                labelField="mainMenuLabel"
                iconField="icon"
                decorator="{data.decorator}"/>
        </fx:Component>
    </s:itemRenderer>
</s:List>
</s:Group>