Skip to main content
Participating Frequently
June 24, 2009
Question

scrolling without last line

  • June 24, 2009
  • 1 reply
  • 619 views

hello

I can't manage scrolling

this is quite weird. I have a button with this action:

controller.verticalScrollPosition+=controller.getScrollDelta(1);

it works fine until the last line of text (which is always invisible). Then it stops and cannot event move back by:

controller.verticalScrollPosition-=controller.getScrollDelta(1);

just won't work. textFlow is as simple as possible

textFlow = TextFilter.importToFlow(markup, TextFilter.TEXT_LAYOUT_FORMAT);

but if I import a plain text

textFlow = TextFilter.importToFlow(markup2, TextFilter.PLAIN_TEXT_FORMAT);

scrolling doesn't work at all.

This topic has been closed for replies.

1 reply

Adobe Employee
June 24, 2009

Take a look at ContainerController.getContentBounds.  If that is wrong then scrolling isn't going to work.

There's been quite a bit of work on scrolling lately and a few bugs were introduced.  Expect much better results with this weeks build.

Sorry about that,

Richard