You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by skvsarathyourfriend <sk...@gmail.com> on 2014/06/02 12:58:28 UTC

How to Identify the text over flow in RichEditableTextArea

I am working with RichEditabletextArea. I want to know whether the text fits
that textarea or it over flows out of the textarea. The below image will
help you to understand the scenario.
<http://apache-flex-users.2333346.n4.nabble.com/file/n6728/stack.png> 

In the above screenshot the last word gets trimmed due to overflow of text
beyond the textarea. How can i get a solution for this.
Thanks in advance.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/How-to-Identify-the-text-over-flow-in-RichEditableTextArea-tp6728.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: How to Identify the text over flow in RichEditableTextArea

Posted by jude <fl...@gmail.com>.
Check the maximum property of the scroller,

textAreaInstanceName.scroller.verticalScrollBar.maximum > 0

In some cases the textAreaInstanceName.scroller instance might be null if
no scroll bars
exist as well. I might be thinking of Flex 3 though.



On Tue, Jun 3, 2014 at 11:25 AM, Alex Harui <ah...@adobe.com> wrote:

> Post a small test case.
>
> On 6/3/14 3:33 AM, "skvsarathyourfriend" <sk...@gmail.com>
> wrote:
>
> >Its not working then also..is there any way to handle this??
> >
> >
> >
> >--
> >View this message in context:
> >
> http://apache-flex-users.2333346.n4.nabble.com/How-to-Identify-the-text-ov
> >er-flow-in-RichEditableTextArea-tp6728p6756.html
> >Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
>

Re: How to Identify the text over flow in RichEditableTextArea

Posted by Alex Harui <ah...@adobe.com>.
Post a small test case.

On 6/3/14 3:33 AM, "skvsarathyourfriend" <sk...@gmail.com>
wrote:

>Its not working then also..is there any way to handle this??
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/How-to-Identify-the-text-ov
>er-flow-in-RichEditableTextArea-tp6728p6756.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: How to Identify the text over flow in RichEditableTextArea

Posted by skvsarathyourfriend <sk...@gmail.com>.
Its not working then also..is there any way to handle this??



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/How-to-Identify-the-text-over-flow-in-RichEditableTextArea-tp6728p6756.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: How to Identify the text over flow in RichEditableTextArea

Posted by Alex Harui <ah...@adobe.com>.
Try checking measuredHeight vs height?

On 6/2/14 3:58 AM, "skvsarathyourfriend" <sk...@gmail.com>
wrote:

>I am working with RichEditabletextArea. I want to know whether the text
>fits
>that textarea or it over flows out of the textarea. The below image will
>help you to understand the scenario.
><http://apache-flex-users.2333346.n4.nabble.com/file/n6728/stack.png>
>
>In the above screenshot the last word gets trimmed due to overflow of text
>beyond the textarea. How can i get a solution for this.
>Thanks in advance.
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/How-to-Identify-the-text-ov
>er-flow-in-RichEditableTextArea-tp6728.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.