1

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!

2 Answers2

1
$(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

jdramaix
  • 1,104
  • 6
  • 9
  • Thank you very much jdramaix, but unfortunately it doesn't work on gwt-query. As far as I'm concerned that issue was already opened. I found a nasty workaround catching onmouseup querying elements with class ".ui-resizable" (something like that class in CSS), and apparently it worked. –  Aug 13 '12 at 18:16
-1

See into this thread. It seems to be a good approach to get what you want.

Community
  • 1
  • 1
  • That question is about jQuery, this question is about GWT. Unfortunately not the same thing. – Simon Forsberg Sep 25 '13 at 19:22
  • Agreed, however consider you can adapt jQuery code into gwt-query code, since gwt-query is a wrapper of jQuery for GWT. –  Oct 03 '13 at 13:40