0 Replies Latest reply on Feb 8, 2007 6:57 PM by Crumpelfungus

    Space around children in FormItem

    Crumpelfungus
      Can anyone help me or point me in the right direction?

      Inside a Form, I have FormItems with children, for example, RadioButtons (see below).
      For the life of me, I cannot figure out what property controls the "extra space" that FormItem seems to put to the left of its children. I have looked all over the web and throughout all the Flex Builder documentation, but I must be blind.

      Does anyone know whether FormItem has some kind of inside margin that can be overwritten?

      If I use the RadioButton control without a FormItem, I can avoid that extra space to its left, but there must be a way to use some kind of style attribute that would allow me to control that, right?


      [code snippet . . .]
      <mx:Form width="50%" paddingTop="0" paddingLeft="0">
      <mx:RadioButton label="I agree" width="175" paddingLeft="2"/>
      <mx:FormItem horizontalAlign="left" labelWidth="0" paddingLeft="0" borderThickness="0" left="0" id="formitem2">
      <mx:RadioButton label="I disagree" width="175" paddingLeft="0" paddingBottom="0" paddingRight="0" paddingTop="0" left="0" id="radiobutton1"/>
      </mx:FormItem>
      <mx:FormItem>
      <mx:LinkButton id="disagreeTextLink"
      label="View the attached document"
      fontWeight="normal"
      width="175"
      paddingLeft="0"/>
      </mx:FormItem>
      </mx:Form>