Opened 13 years ago

Closed 12 years ago

#2317 closed defect (duplicate)

Incorrect position of Menu2 [contextmenu] when inside an Iframe on IE6 and IE7

Reported by: coolwind@… Owned by: bill
Priority: high Milestone: 1.1
Component: Dijit Version: 0.4.1
Keywords: iframe menu2 contextmenu internet explorer position Cc:
Blocked By: Blocking:

Description

When creating a contextmenu (Menu2) inside an Iframe with IE6 and IE7, it is positioned incorrectly.

The bug does not happen when using Firefox.

I found that removing the following code, the popup is shown where it should.

[line 310 of Menu2.js]
if(iframe){
    var cood = dojo.html.abs(iframe, true);
    x += cood.x - dojo.withGlobal(win, dojo.html.getScroll).left;
    y += cood.y - dojo.withGlobal(win, dojo.html.getScroll).top;
}

Change History (6)

comment:1 Changed 12 years ago by bill

Component: WidgetsDijit
Milestone: 1.0

Testcase?

All this code has been changed for 0.9 so this may no longer be an issue but please give it a try and let us know.

comment:2 Changed 12 years ago by bill

Milestone: 1.00.9
Resolution: fixed
Status: newclosed

I've removed that code from Menu so I think this is fixed.

comment:3 Changed 12 years ago by guest

Resolution: fixed
Status: closedreopened

This problem still occurs in version 0.9.0 using Firefox; see my post at http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/dojo-parent-widgets-iframe-tooltip-contextmenu-etc and the related post. Thank you.

comment:4 Changed 12 years ago by bill

Milestone: 0.91.1

comment:5 Changed 12 years ago by bill

I really need a test case before looking at this. Please attach one to this ticket, or I'll have to close it.

comment:6 Changed 12 years ago by bill

Resolution: duplicate
Status: reopenedclosed

Dup of #4782

Note: See TracTickets for help on using tickets.