Subclass and reposition the internal textfield.

From: [email protected] [mailto:[email protected]] On Behalf 
Of bjorn
Sent: Tuesday, December 16, 2008 6:18 AM
To: [email protected]
Subject: Re: [flexcoders] Re: Padding/spacing before the first line in a 
TextArea


Yepp, thanks .. but that doesn't affect this. It's space inside the TextArea 
(which is decided by the font in some way)..

Bjørn


2008/12/16 Cato Paus <[email protected]<mailto:[email protected]>>

Have you try this

paddingTop: 0;
paddingBottom: 0;
paddingRight: 0;
paddingLeft: 0;

on TextArea?


--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, bjorn 
<itrashm...@...> wrote:
>
> Any ideas on where I might find more info about this? .. or people
who might
> know more ...
>
>
> 2008/12/2 bjorn <itrashm...@...>

>
> > There is some padding before the first line in a TextArea. Have a
look at
> > this image to see what I mean:
> >
> > http://i34.tinypic.com/4uz8s0.jpg
> >
> > I need to remove this, and the first solution that comes to mind
is to find
> > that value and position the TextArea.y = TextArea.y - [that
value]. The
> > padding before the first line seems to be equal (in most cases)
to the
> > font's descent, which I can get from getTextLineMetrics().descent.
> >
> > However, this is not true in all cases. In some cases, the
padding is more.
> >
> > Anyone have suggestions?
> >
> > Bjørn
> > --
> > ========================
> > http://www.juicability.com - flex blog
> > http://www.nospoiler.com - link to youtube videos without the
spoilers
> >
>
>
>
> --
> ========================
> http://www.juicability.com - flex blog
> http://www.nospoiler.com - link to youtube videos without the
spoilers
>



--
========================
http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers

Reply via email to