#991 ✓works_for_me

document.viewport.getHeight() in Opera 10.10

Reported by abolabo | February 11th, 2010 @ 10:12 AM

Please check values of returns these calls in Opera 10.10 and FF 3.6:


They are different.

For Opera i found solution

function getViewportHeight()
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;

Comments and changes to this ticket

  • Tobie Langel
  • Tisho Georgiev

    Tisho Georgiev March 1st, 2010 @ 03:44 PM

    • State changed from “new” to “works_for_me”
    • Tag set to needs:failing_testcase, section:dom

    Thanks for your ticket. Unfortunately we aren’t able to replicate the problem you’ve described. Could you please reopen this ticket with a failing test case attached? Don't forget to mention the OS you're running.

    Thanks for taking the time to contribute.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins