Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#13187 closed bug (notabug)

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

Reported by: pelleplutt@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:

Description

I use the following code with a barely empty body.

$("document").ready(function(){

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 7 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 7 years ago by pelleplutt@…

$(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 7 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.