Closed Bug 21223 Opened 25 years ago Closed 25 years ago

<popup> window default location is incorrect

Categories

(Core :: XUL, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: cmanske, Assigned: mikepinkerton)

References

Details

Example: Start the editor. Click on a color-picker button on the toolbar.
The popup window comes up in the wrong location. It should anchor the upper
left corner under the mouse point.
Status: NEW → ASSIGNED
Target Milestone: M14
...
I'm not sure if this is the same bug, but in the mailnews threadpane, the
context menu shows up too far down and too far right from the place where I clicked.
It is the same bug if you are using a <popup> element, not a <menupopup>,
which seems to position OK.
yes, it's a popup with "context" in the tree.
I see the same problem when I have a titled button with a popup (not a context
window).

The popup shows up in the middle of my screen instead of being anchored to the
title button i've declared the popup in.

Here's what my title button xul looks like:
					<box id="FromBox" class="headerBox" align="horizontal" hide="true">
              <html:div class="headerdisplayname">&fromField.label;</html:div>
              <titledbutton class="emailDisplayButton" id="FromValue"
value="foo"
                  popup="emailAddressPopup" />
					</box>
Assignee: hyatt → pinkerton
Status: ASSIGNED → NEW
Taking menu/popup bugs.
QA Contact: claudius → sairuh
Pink just took ownership of several menu-related bugs, most were already QAassigned to sairuh, I'm just making sure that they
all are now :-)
*** Bug 23919 has been marked as a duplicate of this bug. ***
*** Bug 24720 has been marked as a duplicate of this bug. ***
Putting on beta1 radar.
Keywords: beta1
bulk accepting xpmenu/popup bugs. sigh.
Status: NEW → ASSIGNED
Is bug 16592 (as REOPENED) the same issue as this bug? 

1. start mozilla
2. click right mouse button on background to bring up the context menu
3. click right mouse button outside it to pop it up at another position
4. select a menu item in it with the RIGHT mouse button

In step four, a *third* context menu pops up in a location that seems to
be computed somehow - it doesn't appear to pop up quite randomly, but it
is always offset in both X and Y. Nevermind that it shouldn't appear at all
(the right click on the menu should either do nothing or select the item),
the code that positions the third context menu may be the same code as is
causing the problem reported here.

Also, testing bug 24901, "[ssl] There are no security warnings.", warnings
were seen on Linux, but in unpredictable locations, sometimes apparently
offscreen.  Not sure whether to file this as a new bug.
*** Bug 25906 has been marked as a duplicate of this bug. ***
Putting on PDT+ radar for beta1.  As long as it can be off screen.
Whiteboard: [PDT+]
*** Bug 26266 has been marked as a duplicate of this bug. ***
*** Bug 26263 has been marked as a duplicate of this bug. ***
This has nothing to do with bug 24901, as these are popups and not alerts. I 
don't know why that is even mentioned in this bug. Also the "right mouse" 
problems in the same comment are totally unrelated to this bug.

Since this was pdt+ only because it was thought the popup might appear offscreen 
(which i'm pretty sure it can't, the offscreen handling popup code is pretty 
bulletproof in other situations), i'm removing the pdt+ for reclassification.
Whiteboard: [PDT+]
editor stuff? this goes to sujay. :-)
QA Contact: sairuh → sujay
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
fixed. editor colorpicker popup now shows up in the right place. can't test mail/
news ones right now, but i'm sure all is well there too.
verified in 2/9 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.