Bug Tracker

Ticket #2992 (new bug)

Opened 7 months ago

Last modified 7 months ago

dimensions related exception in Firefox

Reported by: pawprint_net Assigned to: brandon
Type: bug Priority: major
Milestone: 1.3 Component: dimensions
Version: 1.2.6 Keywords: dimensions,firefox,opera,innerHeight
Cc: Needs: Review

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

Change History

Changed 7 months ago by flesler

  • owner set to brandon
  • component changed from core to dimensions
Note: See TracTickets for help on using tickets.