If you're looking at ASDoc comments in source code, it would make more sense to 
first look at the public comment for this property where it is originally 
defined in the UIComponent base class, rather than at the private comment in 
the Container subclass.

The comment in UIComponent (which appears in the generated Language Reference) 
describes it as "The y-coordinate of the baseline of the first line of text of 
the component." It fails to mention that this is in the coordinate system of 
the component, not its parent. But what it means is that for a Button (for 
example) it is the number of pixels from the top of the Button to the baseline 
of its label text. A plain Container does not have any text, so it pretends 
that there is a line of text at its top, in order to calculate a baseline.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif 
Abdou
Sent: Wednesday, September 17, 2008 9:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] baselinePosition meaning?

Ok let me answer my question, after playing around and changing it up, is it 
basically an Imaginary Line where It is used to align control like have the 
label in the formItem be centered to the TextInput control?

------
Sherif Abdou
http://VadexFX.com
http://Sherifabdou.com
----- Original Message -----
From: Sherif Abdou<mailto:[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com>
Sent: Wednesday, September 17, 2008 12:32 AM
Subject: [flexcoders] baselinePosition meaning?


Prob a silly question but what is the meaning of baselinePosition in plain 
english. I read the Docs but I have no idea what the purpose of it is or when 
it's use comes to play.

/**

* @private

* The baselinePosition of a Container is calculated

* as if there was a UITextField using the Container's styles

* whose top is at viewMetrics.top.

*/


Reply via email to