Skip to main content

Bug Tracker

Side navigation

#2992 closed bug (invalid)

Opened June 05, 2008 03:37PM UTC

Closed April 22, 2009 01:29AM UTC

dimensions related exception in Firefox

Reported by: pawprint_net Owned by: brandon
Priority: major Milestone: 1.3
Component: dimensions Version: 1.2.6
Keywords: dimensions,firefox,opera,innerHeight Cc:
Blocked by: Blocking:
Description

someone else mentioned this issue here:

http://plugins.jquery.com/node/2215

but since in jQuery 1.2.6 dimensions has been included in the core the same issue is showing up in jQuery core now.

I tracked it a bit further and I do not believe that it is related to the this.is(':visible') as specified previously, but rather the following portion (tried calling this alone and it causes the exception):

num( this, name.toLowerCase() ) + num(this, 'padding' + torl) + num(this, 'padding' + borr);

Workaround: override innerWidth and innerHeight functions with the ones from dimensions 1.1 and everything seems fine.

Which leads me to believe that the line

this[0] == window || this[0] == document ? this.height() : ...

from dimensions 1.1 is solving the issue but preventing a .curCSS call on window or document.

This is not a problem on IE 6,7

This is a problem on Firefox 2,3; Opera 9;

perhaps others - that was all I had available to test.

Attachments (0)
Change History (3)

Changed June 06, 2008 12:59AM UTC by flesler comment:1

component: coredimensions
owner: → brandon

Changed January 22, 2009 08:43PM UTC by pawprint_net comment:2

This appears to have been fixed in jq 1.3.1

Might want to check the ticket and close it if necessary :)

Changed April 22, 2009 01:29AM UTC by brandon comment:3

resolution: → invalid
status: newclosed

The inner/outer width/height methods do not work on the window or document objects. Only the with/height methods work for window and document objects.