src code
Component#top() → Number
Returns the number of pixels from the top of the screen to the top of the Component.
Component