Skip to main content

Bug Tracker

Side navigation

#13187 closed bug (notabug)

Opened January 10, 2013 02:14PM UTC

Closed January 10, 2013 02:20PM UTC

Last modified January 10, 2013 02:38PM UTC

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

Reported by: 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.

Attachments (0)
Change History (3)

Changed January 10, 2013 02:20PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

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

Changed January 10, 2013 02:34PM UTC by comment:2

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

Changed January 10, 2013 02:38PM UTC by dmethvin comment:3

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 jQuery has never tested or guaranteed consistent results in quirks mode.