Thanks for your replies. However it was not what exactly what I was looking for my site http://www.cheapriver.com I finally got it to work how I wanted it to work with some help of a colleaugue at work. I've posted the code on my blog http://jaap.haitsma.org/2009/12/19/status-popup-for-gwt-google-web-toolkit/
Jaap On Nov 30, 11:55 pm, Thomas Broyer <[email protected]> wrote: > On 25 nov, 21:20, Jaap <[email protected]> wrote: > > > Hi > > > I'd like to have PopupPanel which I show at the top and in the centre > > of the screen when an error occured with a red background, with a > > small text like "Oops an error occured please try again" > > > How do I do this? I'm struggling with getting the right CSS for this. > > Using setPopupPositionAndShow, you'll be able to determine the size of > the popup and adjust its position (compute its "left" position > depending on its width), before it is actually displayed. > > If you want it to stay at the top of the window while you scroll, you > can use "position:fixed" in your CSS, and workaround the lack of > support in IE6 by using a Window.ScrollHandler to re-position the > popup (setPopupPosition) on scroll. > > I'm doing it this way for more than a year (with variations when there > were no Window.ScrollHandler) and it works pretty well. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
