Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#13187 closed bug (notabug)

$(window).height() returns wrong value in firefox 18.0

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:


I use the following code with a barely empty body.


var rs = function() {

var height = $(window).height();

$("#container .main").height(height);

}; $(window).bind('resize', rs);


When I resize the window the ".main"-classdiv gets a different height in firefox and other browsers. However this code works fine with version 1.6.4 which i've just tested.

Change History (3)

comment:1 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

Sounds like you are in quirks mode. Please ask for help on a forum.

comment:2 Changed 10 years ago by [email protected]

$(window).height() returns different values when changing between the 2 jquery versions. But not when using Google chrome. Seems like a bug to me.

comment:3 Changed 10 years ago by dmethvin

Sure, it's possible. Ask for help in the forum and then if it turns out you're not in quirks mode, please post a complete test case from jsfiddle.net. jQuery has never tested or guaranteed consistent results in quirks mode.

Note: See TracTickets for help on using tickets.