#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 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
Milestone: | 1.4 → 1.3 |
---|
Note: See
TracTickets for help on using
tickets.
(In [16583]) Fixes #8421. Replace getViewport with a more simple algorithm.