Open Bug 543418 Opened 15 years ago Updated 2 years ago

Anchored popups fail to consider anchor node clipping due to scrolling

Categories

(Core :: XUL, defect)

x86
Windows 7
defect

Tracking

()

People

(Reporter: jwkbugzilla, Unassigned)

References

Details

Attachments

(1 file)

998 bytes, application/vnd.mozilla.xul+xml
Details
Attached file Testcase
You can display a XUL popup relative to an anchor node - e.g. you specify before_start position to have the popup appear at the upper-left corner of the anchor node. However, if the anchor node is in a scrollable document and part of it is clipped away the popup fails to consider this clipping, it will appear in some distance to the visible part of the anchor node.
Steps to reproduce with the testcase attached: 1. Go to menu Tools / Error Console. 2. Copy the following into the "Code" text field and click "Evaluate": window.openDialog("https://bugzilla.mozilla.org/attachment.cgi?id=424549", "_blank", "left=100,top=100,width=100,height=100,chrome") 3. The green area is the anchor node for the popup. Click it and observe the popup being displayed at the upper edge of the green area. 4. Now scroll down somewhat and click the green area again. Expected results: the popup appears at the upper edge of the green area. Actual results: the popup appears in some distance to the upper edge of the green area, even above the window. The distance depends on the amount of scrolling.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: