Thanks! That make sense. Did ensureVisible can help you there?
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/ScrollPanel.html#ensureVisible%28com.google.gwt.user.client.ui.UIObject%29

On Jul 22, 9:24 pm, Deepak Singh <deepaksingh...@gmail.com> wrote:
> No. Not layout.
>
> Say, suppose this is the html as follows,
>
> <div id="a"/>
> <div id="b"/>
> <div id="c"/>
> <div id="d"/>
>
> And at runtime contents are added to these div.
>
> Now, the content of div id="d" will be at the lowest position so it may not
> be visible to the user at first glance, so the user has to scroll down to
> the browser to see the last div content.
>
> Now i want that whenever the content is added to div id="d", the browser
> should automatically scroll down enough to make the content of last div
> visible to the user.
>
> How to acheive this?
>
>
>
>
>
>
>
> On Fri, Jul 22, 2011 at 11:58 PM, VisualFox <mecha...@gmail.com> wrote:
> > Sorry I am not sure I understand what you mean. Are you speaking about
> > layout or some way to control the scrollpane/focus?
>
> > On Jul 22, 7:42 pm, Deepak Singh <deepaksingh...@gmail.com> wrote:
> > > Any idea pls..
>
> > > On Mon, Jul 18, 2011 at 3:38 PM, Deepak Singh <deepaksingh...@gmail.com
> > >wrote:
>
> > > > Hi All,
>
> > > > I have one html which contains may div elements. Each div element
> > contains
> > > > different widget.
> > > > Now based on the user activity i want to show a particular <div> on the
> > > > center of screen by just scrolling up or down the html as it happens in
> > > > google+ now.
> > > > How can i acheive this?
>
> > > > Also, I need this by keypress also. Kindly suggest.
>
> > > > Regards
> > > > Deepak
>
> > --
> > 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.

-- 
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.

Reply via email to