spark form item gap in Flex

cili picture cili · Feb 26, 2011 · Viewed 8.2k times · Source

Is there a way to change the space between a spark form item and its content(textinput, conbobox)? I already set to 0 the "gap" property of the form, but still there is a lot of vertical space left between the form inputs.

Answer

Glen Blanchard picture Glen Blanchard · Jul 17, 2011

Set the gap to -14 to get no gap between the items

<s:Form>
    <s:layout>
        <s:FormLayout gap="-14"/>
    </s:layout>
    <s:FormItem .....>
</s:Form>