Issue 25 -- Rotations in IE8

325 views
Skip to first unread message

JayLink1971

unread,
Jun 23, 2009, 6:31:02 PM6/23/09
to google-excanvas
Hi --

It's great to see the progress this project has made over just the
past few months.

Erik, can you please have another look at Issue 25 (rotations in
IE8)? I have also experienced this in standards mode using Win XP,
even using today's Revision 63.

For an example, please see: http://www.browserpilot.com/canvascompass.php
Press "Rotate" to begin or end rotations.


Thanks so much,

- Jay Link

TommyM

unread,
Jul 8, 2009, 10:08:50 PM7/8/09
to google-excanvas
Hi,

I notice you are having issues with rotating the image in IE8
standards mode. I tried your testcase with my previously submitted
patch. Doing this I discovered a minor issue with the beforementioned
patch. I fixed it and uploaded your testcase here:
http://extjs.com/playpen/tm/excanvas-patch/canvas_rotate.html

More information about this patch can be found here:
http://extjs.com/playpen/tm/excanvas-patch/

Tommy

JayLink1971

unread,
Jul 16, 2009, 8:00:03 AM7/16/09
to google-excanvas

> I notice you are having issues with rotating the image in IE8

< snip >

> More information about this patch can be found here:http://extjs.com/playpen/tm/excanvas-patch/

Tommy,

This works wonderfully! My old machine with IE8 died unexpectedly
right about when you posted this, but I noticed immediately how smooth
it appeared in IE7. This morning I tried it in IE8 and it worked
perfectly.

Thank you so much!

- Jay

JayLink1971

unread,
Jul 20, 2009, 8:29:53 AM7/20/09
to google-excanvas
Hope this isn't too off topic ...

The actual IE rotations are handled by
filter:progid:DXImageTransform.Microsoft.Matrix(). Although Tommy's
patch works perfectly, I was also trying to come up with a method that
didn't involve drawing a new VML image every time, as that gets really
slow after a while. During my experiments, I noticed a curious
behavior.

In IE7 and below, the specified element and all of its child elements
are rotated as one might expect. However, in IE8 it seems that if any
of the child elements are positioned relatively or absolutely, they
will NOT rotate along with he parent. Is this a product of "have
layout"? Does anyone have any experience with this?

Is it possible to have child elements rotate as well when they are
positioned absolutely?
Reply all
Reply to author
Forward
0 new messages