Search code examples
javagwtresizegwtquery

gwt-query: resize event


I was wondering if there is some kind of workaround for catching resize event completion on GWT-query. I've tryied to do it by $().resize() but it was no good. I've also thaught about catching mouseout event, but it doesn't work at leaving resize ui-grab icon.

Any idea? thanks in advance!


Solution

  • $(GQuery.window).resize(new Function(){
        public void f(){
          //Do something here when the window is resized
        }
    }
    

    Should work (resize event is sent on the window element only). If not, please open an issue here : http://code.google.com/p/gwtquery/issues/list