[whatwg] Canvas size and double buffering.

On 3 February 2010 20:14, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> Yep. ?canvas.width = canvas.getBoundingClientRect().width;

Ah yes that works nicely, with one minor caveat: it seems to include
the width of the border if there is one, so you have to take that into
account. You're right, this is a better solution.

Cheers.

Received on Wednesday, 3 February 2010 15:12:21 UTC