I see the solution... you can do:

clientDocument.addEventListener("windowresize", layout._handleResize, layout);

without stomping on clientDocument's existing "windowresize" listener.


Sorry for the spam folks,

Simon


----- Original Message ----
From: Simon Bull <[EMAIL PROTECTED]>
To: qooxdoo-devel@lists.sourceforge.net
Sent: Wednesday, 6 December, 2006 3:33:44 PM
Subject: [qooxdoo-devel] How can I listen for Layout resize events?

Hi All,

Does anyone know of a neat way to listen for any resize events of a Layout?

Specifically, I have a CanvasLayout contained within the ClientDocument that is 
resized when the user resizes the browser window.  I need to execute some logic 
when this CanvasLayout is resized.

I see that ClientDocument handles window resize events like this:

  // Add Resize Handler
  this.addEventListener("windowresize", this._onwindowresize);

But I don't really want to override ClientDocument._onwindowresize() to handle 
my application specific code, and I also prefer not to have the ClientDocument 
catching a window resize event and then delegating the event down to some lower 
level widget(s) that care.

Is there a way to do something like this?

layout.addEventListener("resize", layout._handleResize, layout);

Thanks,

Simon




Send instant messages to your online friends http://au.messenger.yahoo.com 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel




Send instant messages to your online friends http://au.messenger.yahoo.com 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to