Modify ↓
Ticket #4336 (closed bug: duplicate)
$(window).height() / Opera 9.2x / jQuery 1.3.x incorrect value
| Reported by: | emartin24 | Owned by: | brandon |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | dimensions | Version: | 1.3.2 |
| Keywords: | dimensions window height opera | Cc: | |
| Blocking: | Blocked by: |
Description
May be same issue as in http://dev.jquery.com/ticket/4335
It appears that in Opera 9.2x and jQuery 1.3.x, $(window).height() returns an incorrect value.
See: http://www.ericmmartin.com/code/jquery/opera/
I created a ticket for each browser, just in case the issue/fix is different.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Same bug with jQuery 1.3.2 on Opera 9.27 under Win32.
Temporary fix using :
var windowHeight = jQuery.browser.opera ? window.innerHeight : jQuery(window).height();