#709 ✓incomplete
blodan

viewport.getHeight() crasches in opera

Reported by blodan | June 12th, 2009 @ 11:12 AM

Hi,

I just noticed when i was devving a site that viewport.getHeight() crasches opera for some reason. Here is the backtrace that opera gives:

Error:
name: TypeError
message: Statement on line 3115: Type mismatch (usually non-object value supplied where object required)
Backtrace:
Line 3115 of linked script http://www.artistkatalogen.com/js/prototype-1.6.1_rc2.js?090601125428: In function getRootElement

    if (B.Opera && window.parseFloat(window.opera.version()) < 9.5)

Line 3122 of linked script http://www.artistkatalogen.com/js/prototype-1.6.1_rc2.js?090601125428: In function define

    if (!element) element = getRootElement();

... Line 308 of linked script http://www.artistkatalogen.com/js/prototype-1.6.1_rc2.js?090601125428

      return __method.apply(this, a);

Line 14 of linked script http://www.artistkatalogen.com/js/topLayer.js?090612110716

    if(topLayer.offsetHeight >= document.viewport.getHeight()) {

Line 119 of linked script http://www.artistkatalogen.com/js/topLayer.js?090612110716

            repos(this.topLayerId, this.bottomLayerId);

... Line 85 of linked script http://www.artistkatalogen.com/js/prototype-1.6.1_rc2.js?090601125428: In function klass

      this.initialize.apply(this, arguments);

Line 337 of linked script http://www.artistkatalogen.com/js/basic.js?090612105848

    new topLayer(id, width, title, content);

Line 1 of function script

edit('Current', '600', 'Redigera aktuellt');

... stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace'

Hope its an easy fix!

Best regards
Daniel

Comments and changes to this ticket

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

People watching this ticket

Pages