Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#11612 closed defect (fixed)

IE6: Dialog test failures, dojo.position reports negative x values

Reported by: haysmark Owned by: Douglas Hays
Priority: high Milestone: 1.6
Component: Dijit Version: 1.5
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by haysmark)

  1. Put the attached test in dijit/tests and open.
  2. When the iframe loads test_Dialog, click the Show Dialog button in the upper left to open a Dialog.
  3. Scroll the OUTER scroll bar (for the window) down to the bottom, click the position button, and note the position printed to the console.
  4. With the Dialog still open, scroll down the INNER scroll bar (for the iframe)
  5. Click the position button again.

In IE6, the logged position's x coordinate will be arbitrarily wrong. My experience is that the more to the right the iframe is, the worse the position is. In DOH during the Dialog robot tests, the position can go negative, causing the robot to attempt to click outside the test area and subsequently abort the test.

Attachments (1)

test_Dialog_iframe.html (1.8 KB) - added by haysmark 9 years ago.
Test case.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by haysmark

Attachment: test_Dialog_iframe.html added

Test case.

comment:1 Changed 9 years ago by haysmark

Description: modified (diff)

This also affects IE8 in IE7 mode. In IE7, the position becomes arbitrarily large; I got x:7720 y:12533.

comment:2 Changed 9 years ago by bill

Owner: set to Douglas Hays

Is this a dojo.position() issue perchance?

comment:3 Changed 9 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [22768]) Fixes #11612. This is a IE6/7 browser bug that seemingly can't be worked-around for the general case. It is possible to avoid the problem by adding position:relative to the offsetParent of the node on which you are calling dojo.position. For Dialog_mouse.html, this would be the TABLE element that the dialog1 displays.

comment:4 Changed 9 years ago by Douglas Hays

Milestone: tbd1.6
Note: See TracTickets for help on using tickets.