VBox has a verticalGap property.  Set it to 0. also you can set the padding
on the label to 0.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of mitchgrrt
Sent: Monday, September 21, 2009 12:08 PM
To: [email protected]
Subject: [flexcoders] trying to control space above label

 

  

It seems like when I put some labels in my app, there is always 5 pixels
padding above them:

    <mx:VBox>
        <mx:Box borderColor="red" borderStyle="solid">
               <mx:Label text="System" styleName="systemDescriptionText"
paddingTop="0"/>
        </mx:Box>
        <mx:Box borderColor="red" borderStyle="solid">
               <mx:Label text="System 24" styleName="systemDescriptionText"
height="24" />
        </mx:Box>
        <mx:Box borderColor="red" borderStyle="solid">
               <mx:Label text="System 16" styleName="systemDescriptionText"
height="16" />
        </mx:Box>
    </mx:VBox>

.systemDescriptionText {
    fontFamily: "Lucida Sans Unicode";
    fontSize:12pt;
    color:#CCCCCC;
}

Each one of the labels above has 5 pixels of space above it, between the
label and the red border line.  Is there a way to control this?  Thanks.



Reply via email to