Skip to main content
Participant
May 23, 2010
Question

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

  • May 23, 2010
  • 1 reply
  • 510 views

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 has been closed for replies.

1 reply

Adobe Employee
May 24, 2010

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