#13187 closed bug (notabug)
$(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: |
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 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
$(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
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.
Sounds like you are in quirks mode. Please ask for help on a forum.