Thursday, July 4, 2013

Browser scrolls when PopupPanel is hidden - can I prevent this?

Hello,

I have a GWT application where I can scroll the page, right-click on an object to display a context menu (a PopupPanel) and then display a settings dialog.

What I'm finding is that if I scroll the page down and try to display a settings dialog, when the PopupPanel disappears the browser scrolls back up again - hiding the dialog that is now off the bottom. I know it's the PopupPanel because I've tried it commenting-out the display of the dialog.

I'd like the page to stay where I put it: does anyone know the source of the unwanted scroll, and is there anything I can do to prevent it?

If I can't prevent it, I don't know how to overcome it: I tried a scheduled deferred command approach to put it back again: works in Chrome but not IE9, presumably due to timings.

Thanks for your help,
David

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment