Skip to main content
Known Participant
April 2, 2009
Answered

How to scroll to a flowelemnt

  • April 2, 2009
  • 1 reply
  • 779 views
My question is quite simple: I retrieve a FlowElement instance by calling getElementById() on a textflow, now what I'd like to find out is the position of this flowelement, so I can call scrollToPosition() on an IContainerController instance.
What should I use to find out the required position for a given FlowElement?

thanks a lot in advance!
This topic has been closed for replies.
Correct answer rdermer
The position you want is flowElement.getAbsolutePosition(). That will scroll the very beginning of the element into view.

1 reply

rdermerCorrect answer
Adobe Employee
April 2, 2009
The position you want is flowElement.getAbsolutePosition(). That will scroll the very beginning of the element into view.
mech-headAuthor
Known Participant
April 3, 2009
hi there,

There's no getAbsolutePosition() method, but I'm sure you meant getAbsoluteStart() :) So, thank you very much, this did save me a bunch of time of trial and error.

cheers!