Re: Listen for Browser resize event
You can do it in GWT 1.6+ with: Window.addResizeHandler(new ResizeHandler() { @Override public void onResize(ResizeEvent event) { put your code here } }); or in GWT prior 1.6 with: Window.addWindowResizeListener(new WindowResizeListener() { @Override public void onWindowResized(int arg0, int arg1) { put your code here } }); On Thu, Jan 7, 2010 at 7:56 AM, mariyan nenchev nenchev.mari...@gmail.comwrote: Hi, I have one popup that has absolute positioning. It is positioned according some other widget which is not absolute. But when i resize the browser the popup must be repositioned. Is it possible to listen for such resize event? Regards. -- 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-tool...@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.
Listen for Browser resize event
Hi, I have one popup that has absolute positioning. It is positioned according some other widget which is not absolute. But when i resize the browser the popup must be repositioned. Is it possible to listen for such resize event? Regards. -- 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-tool...@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.
Re: Listen for Browser resize event
On Jan 7, 11:56 am, mariyan nenchev nenchev.mari...@gmail.com wrote: Hi, I have one popup that has absolute positioning. It is positioned according some other widget which is not absolute. But when i resize the browser the popup must be repositioned. Is it possible to listen for such resize event? Sure! Have a look at Window.addResizeHandler(...) http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/Window.html#addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler) -- 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-tool...@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.