ScrollPanel - how to alter scrolling behavior

1 view
Skip to first unread message

Bruce Petro

unread,
Nov 24, 2009, 10:33:16 AM11/24/09
to Google Web Toolkit
I have a scroll panel that I fill with several lines of text, but I only display one line at a time.
Currently if I click on the down arrow, it scrolls a pixel or two at a time requiring 8-10 clicks to get to the next text line.

Is there a way to tie into the scrolling nature and have it scroll (either up or down) by the number of pixels (let's say 20 px) that equate to each line of text?


jhulford

unread,
Nov 25, 2009, 10:01:29 AM11/25/09
to Google Web Toolkit
You might be able to add a key listener to the scroll panel and use
scrollTop to have it progressively jump down the elements inside the
scrollpanel when the user hits down/up.
Reply all
Reply to author
Forward
0 new messages