Groups > Browsers > Opera Browser Technical topics > <canvas> + <div> resize issue




<canvas> + <div> resize issue

<canvas> + <div> resize issue
Sat, 05 Apr 2008 09:06:29 -070
I have a page with a <canvas> inside a <div> which has the cursor
set to  
"pointer".
When I move/resize the <div>, and attempt to resize the <canvas> to
fit  
the resized <div>
via setAttribute(), the canvas doesn't resize, and appears to retain the  
"pointer" cursor.

I then used style.width/height to adjust the canvas to fit the resized  
<div>;
this fixes the cursor issue, *but* appears to cause the canvas coordinate  
system
to be changed.

The problem occurs on Opera 9.24 thru 9.27; the original version works  
fine on
FF 2 and 3, Safari 3.0/3.1, and IE 6/7 (using excanvas).

Is this a known bug in Opera ? Is there another workaround ? I haven't
tried setting overflow: hidden on the container div yet, perhaps that will
solve it ?

TIA,
Dean Arnold
Presicient Corp.

-- 
Post Reply
about | contact