Bug Tracker

Opened 12 years ago

Closed 11 years ago

#2992 closed bug (invalid)

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.

Change History (3)

comment:1 Changed 12 years ago by flesler

Component: coredimensions
Owner: set to brandon

comment:2 Changed 11 years ago by pawprint_net

This appears to have been fixed in jq 1.3.1

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

comment:3 Changed 11 years ago by brandon

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.

Note: See TracTickets for help on using tickets.