Bug Tracker

Modify

Ticket #2992 (closed bug: invalid)

Opened 5 years ago

Last modified 4 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 5 years ago by flesler

  • Owner set to brandon
  • Component changed from core to dimensions

comment:2 Changed 4 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 4 years ago by brandon

  • Status changed from new to closed
  • Resolution set to invalid

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.