Skip to main content
Participant
May 23, 2010 2:15 PM UTC
Question

Alternative to maxscroll in RichEditableText component in Flex4(spark)?

We need to determine when there is more text than the textfield can  display, so we can show a warning.

The user is designing pages to be printed, so he has to know when text will be omitted.

I'm looking for an alternative to "maxscroll" in the RichEditableText component using Flex4.

We tried it with „contentHeight“:

if(myRichEditableText.contentHeight > myRichEditableText.height) // do something

But this seams to be unreliable.

Pointing in the right direction is welcome.

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Adobe Employee
May 24, 2010 9:59 PM UTC

Is your container scrollable? If so, I'd suggest calling textFlow.flowCompsoer.composePosition() *before* using the contentHeight field. This will force it to compose all the way to the end of the TextFlow, instead of returning an estimated height.

- robin

Translate