Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13333 closed bug (notabug)

$(window).innerHeight() returns wrong value in FF 18.0.1

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


      <script src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
        var xw = window.innerWidth;
        var xh = window.innerHeight;
        document.write("<p>xw="+xw+" xh="+xh+"</p>");
        var jw = $(window).innerWidth();
        var jh = $(window).innerHeight();
        document.write("<p>jw="+jw+" jh="+jh+"</p>");


xw=929 xh=775

jw=929 jh=775

Firefox 18.0.1

xw=1141 xh=736

jw=1141 jh=52 <--- Height is height of contents, not window

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

There's no live test, but judging by the code snippet you're in quirks mode.

Note: See TracTickets for help on using tickets.