Re: Scroll to certain position

2009-03-23 Thread lukehashj

You have a few options.

You can use the ScrollPanel class, and the setScrollBarPosition
method.

Or, you can use DOM.scrollIntoView(Element e)

Good luck

On Mar 22, 4:40 pm, "maple...@gmail.com"  wrote:
> im a newbie
> how could i scroll to the certain position in a panel?
>
> For example:
>
> Panel pagePanel = new Panel();
> pagePanel.setHtml("aFile");
>
> When i click a button, the pagePanel will start to show the from the
> 10th line.
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Scroll to certain position

2009-03-22 Thread maple...@gmail.com

im a newbie
how could i scroll to the certain position in a panel?

For example:

Panel pagePanel = new Panel();
pagePanel.setHtml("aFile");

When i click a button, the pagePanel will start to show the from the
10th line.

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---