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: | pelleplutt@gmail.com | 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.
Attachments (0)
Change History (3)
Changed January 10, 2013 02:20PM UTC by comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
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 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 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.