[twdev] Re: How to autosize canvas elt in tiddler ?

2009-05-29 Thread ybabel
I'll try that ! thx :-) On 29 mai, 15:17, rakugo wrote: > jQuery can help you here. > > At the start of your macro you will probably want to do something like > this... > > function setsize(place,canvas){ > var w = jQuery(place).width(); > var h = jQuery(place).height(); > canvas.width = w; > va

[twdev] Re: How to autosize canvas elt in tiddler ?

2009-05-29 Thread rakugo
jQuery can help you here. At the start of your macro you will probably want to do something like this... function setsize(place,canvas){ var w = jQuery(place).width(); var h = jQuery(place).height(); canvas.width = w; vanvas.height = h; <> } I'd suggest you look at jQuery's window.resize functi