joaojonesventura
unread,Sep 11, 2012, 4:41:50 PM9/11/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pyjs-...@googlegroups.com
Hi everyone,
I'm doing a web app where a widget of mine will be a canvas element. The canvas will be dependent on the size available for the panel where the canvas will be placed.
I have already submited a patch to get the clientWidth and clientHeight of a UIObject, and hope it will be accepted there.
However, I need to "catch" resize events to update the canvas width/height. I've searched and it seems that there is no HTML way to catch resize events on single elements, just when the entire window resizes. I can't find any pyjs example or wiki entry which shows how to add a resize listener to a window. Anybody knows how to do this in pyjs?
Thanks,
João Ventura