Search code examples
formsapache-flexflex-sparkgaps-in-visuals

spark form item gap in Flex


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.


Solution

  • The spark skin for formItem has left/right variables set based on "columns." I.e. left="column1:10" means the element is 10 pixels to the right of column 1.

    So, create the skin, reduce those numbers in the "content" column area and check it.

    Reducing all those numbers and the gap should tighten, along with setting the gap in form layout.