Hi,
the gap should be 0 and the padding 3 (left and right) and 5 (top and
bottom) [1][2].
If you need some more details, I guess this [3] is the default item
renderer.

Hope this helps,
Olaf

[1] Set gap=0
var dpl:DropDownList = new DropDownList(); 
dpl.layout = new VerticalLayout(); 
VerticalLayout(dpl.layout).gap  = 0;
VerticalLayout(dpl.layout).requestedMaxRowCount = 12; 
dpl.itemRenderer = new ClassFactory(CustomItemRenderer); 

[2] Set padding
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"; 
                                xmlns:s="library://ns.adobe.com/flex/spark" 
                                xmlns:mx="library://ns.adobe.com/flex/mx" 
                                autoDrawBackground="true" width="100%">
        
        <s:Label text="{data}" paddingLeft="3" paddingRight="3" paddingTop="5"
paddingBottom="5"/>
        
</s:ItemRenderer>

[3]
https://github.com/apache/flex-sdk/blob/master/frameworks/projects/spark/src/spark/skins/spark/DefaultItemRenderer.as





--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Reply via email to