IE errors in getViewportDimensions

5 views
Skip to first unread message

David Barnett

unread,
Nov 17, 2008, 6:19:08 PM11/17/08
to moch...@googlegroups.com
Hi guys,

I found a somewhat obscure bug in getViewportDimensions that appears in IE when using TurboFancyFlash.

The problem is that the check whether
 MochiKit.DOM._document.body.parentElement.ClientWidth
exists will error out if
 MochiKit.DOM._document.body
doesn't exist. TurboFancyFlash makes that happen in IE by calling getViewportDimensions from the HEAD tag.

I've attached a patch against the latest SVN of MochiKit. I've also sent the patch to the Chris Arndt (the TurboFancyFlash creator) since TFF bundles a version of MochiKit.

David
ie_getviewportdim.patch

Per Cederberg

unread,
Nov 18, 2008, 4:40:08 AM11/18/08
to MochiKit
Thanks for a great bug report and patch, David!

It has been applied in r1466 and will also show up in 1.4.2 (eventually).

Cheers,

/Per
Reply all
Reply to author
Forward
0 new messages