Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#8421 closed defect (fixed)

dijit.getViewport returns incorrect size in Opera.9.63

Reported by: Douglas Hays Owned by: Douglas Hays
Priority: high Milestone: 1.3
Component: Dijit Version: 1.2.3
Keywords: Cc:
Blocked By: Blocking:

Description

The viewport returning using Opera includes the scrollbars and it should not. This code needs to be simplified. The following works for scrollIntoView for all browsers and doctypes.

var scrollRoot = (dojo.doc.compatMode == 'BackCompat')? dojo.body() : dojo.doc.documentElement;
var w = scrollRoot.clientWidth;
var h = scrollRoot.clientHeight;

Change History (2)

comment:1 Changed 11 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [16583]) Fixes #8421. Replace getViewport with a more simple algorithm.

comment:2 Changed 11 years ago by Douglas Hays

Milestone: 1.41.3
Note: See TracTickets for help on using tickets.