The scrolling of ScrollPanel is not related to the height of a row, so even if you leave it on, its likely that the scroll amount wouldn't match the row height, and you would still end up with an offset.
The only universal solution that I know about is to mark one of the cells in the selected row as focusable (set tabIndex to -1) and focus on it. You should take a look at CellTable, which handles keyboard support and uses this focus trick.
Alternatively, you can try DOM.scrollIntoView(Element), which attempts to set a reasonable scroll height. Unfortunately, it isn't always reliable.
Thanks,
John LaBanca
jlabanca@google.com
On Thu, Oct 28, 2010 at 7:44 AM, MickeyR <mnrooney@gmail.com> wrote:
Thanks for that.
Event#preventDefault() does indeed stop the ScrollPanel from
scrolling.
But the problem now is that my selected cell goes out of sight.
So if I keep on pressing the Key.DOWN it goes past the visible range.
So is there a way to stop the browser from scrolling with every UP/
DOWN key action
but also to force it to manually scroll when my selected cell goes off
the page ?
Thanks,
M.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment