openPopup(null, 'after_pointer') doesn't work as expected

UNCONFIRMED
Unassigned

Status

()

Core
XUL
UNCONFIRMED
7 years ago
6 years ago

People

(Reporter: ithinc, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)
Build Identifier: 

document.getElementById("contentAreaContextMenu").openPopup(null, 'after_pointer') opens the popup in the top-left corner of the window, but not vertically offset a few pixels from the mouse pointer. Is it a bug or intended behavior?

Reproducible: Always
after_pointer is not currently implemented with respect to the mouse pointer. It currently offsets 21 pixels vertically from the anchor.
(Reporter)

Comment 2

7 years ago
This has been documented in several places for a long while. Should the documents be corrected or this bug be fixed?

https://developer.mozilla.org/en/XUL/menupopup#a-popup.position
https://developer.mozilla.org/en/XUL/Attribute/popup.position
https://developer.mozilla.org/en/XUL/PopupGuide/Positioning#The_position_attribute
https://developer.mozilla.org/en/XUL_Tutorial/Popup_Menus#Popup_Alignment

Comment 3

6 years ago
It seems that "at_pointer" is not implemented as well. I've updated the docs linking to this bug.
You need to log in before you can comment on or make changes to this bug.