Deepa is correct, but that affects your .text property. Unfortunately, there's no official way to do it. I'd subclass TextArea and override the layoutChildren method to get the inner text field to layout at the desired position.
--- In [email protected], "Deepa Subramaniam" <[EMAIL PROTECTED]> wrote: > If you're just trying to force some space between the text and the top > of the component, you can programmatically insert a newline before the > text. This keeps the scrollbar in place but the text pushed down. > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of rockmoyosa > Sent: Tuesday, May 31, 2005 1:37 AM > To: [email protected] > Subject: [flexcoders] margintop in textarea? > > Is ther a way to set a margintop in a textarea? > I can force a top margin with: > > .content_txt.border_mc.borderMetrics.top = 10; > > but than the scrollbar has also an margin-top but that's very very ugly. > So only the content needs a margin-top. > > > > > > > Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

