1 Reply Latest reply on Jan 20, 2008 9:12 PM by Sreenivas R

    vertical space between labels

    kruse Level 1
      I have some labels alligned like this.

      <mx:HBox width="100%" >
      <mx:Label text="Proteins" fontSize="10" height="16"/>
      <mx:Label text="{numberFormatter.format(items.currentItem.proteins)}" fontWeight="bold" height="16" />
      </mx:HBox>
      <mx:HBox width="100%">
      <mx:Label text="Carbs" fontSize="10" height="16" />
      <mx:Label text="{numberFormatter.format(items.currentItem.carbs)}" fontSize="10" height="16"/>
      </mx:HBox>

      But my problem is that the space between the lines is very big
      like:

      Proteins 10

      Carbs 20


      I want to get the 2 lines closer to eatch other like
      Proteins 10
      Carbs 20

      how do I do that?
      If I just make the label height smaler that 16 the text gets cutt of from the bottom and up.

      Should I use somethng than label?