Hi,
this is probably obvious, but I still can not figure this out.
I have a (SmartGWT) Canvas object, embedded in several layers of Layouts.
I add a ResizedHandler to the canvas.
When the browser window is resized, the attached handler is called several times. (The number is probably close to the number of embedded layers.)
How can I avoid doing the (potentially costy) resize operation several times, and do it just once, when everything has finished?
Thank you for your help:
Csillag
this is probably obvious, but I still can not figure this out.
I have a (SmartGWT) Canvas object, embedded in several layers of Layouts.
I add a ResizedHandler to the canvas.
When the browser window is resized, the attached handler is called several times. (The number is probably close to the number of embedded layers.)
How can I avoid doing the (potentially costy) resize operation several times, and do it just once, when everything has finished?
Thank you for your help:
Csillag
Comment