Closed Bug 519296 Opened 16 years ago Closed 16 years ago

openPopup with "after_pointer" doesn't work

Categories

(Core :: XUL, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: kazuho, Assigned: enndeakin)

References

Details

Attachments

(4 files)

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Build Identifier: tooltip/menupopup openPopup function with "after_pointer" doesn't work if the element is on xul:panel. Reproducible: Always Steps to Reproduce: 1. Create xul:panel and xul:tooltip 2. Put some element on the panel 3. open tooltip with tooltip.openPanel(target, "after_pointer", 0, 0, false, false) Actual Results: tooltip won't appear, or appear wrong place. Expected Results: tooltip should appear near by mouse cursor. Attached XUL file can reproduce this bug.
Attachment #403334 - Flags: review?
What does "tooltip won't appear, or appear wrong place" mean? In which cases does it not appear at all? And when it appears "in the wrong place", where exactly does it appear? When I click the button in your testcase, the popup opens with its top left corner exactly under the cursors "click position". Does that not work for you?
Oops, I didn't mention that this bug appears on latest Firefox trunk, works fine with 3.0/3.5. Not sure on 3.6beta.
Version: unspecified → Trunk
I'm testing with today's trunk nightly and I don't see what you're seeing (or I don't understand it).
Did you click "Search" Button on the panel? Pls try to click "Panel" then click "Search" button. On Fx 3.5, click search button opens tooltip after mouse cursor, but on Trunk, tooptip won't appear. I tested this on http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/ firefox-3.7a1pre.en-US.mac.dmg 28-Sep-2009 06:28 23M Not tested on Win/Linux.
Aha, the search button! You could have said that in your STR ;) OK, I see what you mean.
Attachment #403334 - Flags: review?
Yeah, I could have read the code more thoroughly, but somehow I didn't see it...
Sorry about not explain it clearly..
I can reproduce the described behavior on Windows Vista. Regression range: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=7b8ca8c944f2&tochange=e45938aee309 Bug 279539 seems a possible cause. Please remove if the dependency is not correct.
Blocks: 279539
Component: Widget: Cocoa → XUL
OS: Mac OS X → All
QA Contact: cocoa → xptoolkit.widgets
Attached patch fixSplinter Review
after_pointer has never really worked as it should, and the value should probably just be removed. This patch should fix the regression though.
Assignee: nobody → enndeakin
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #404064 - Flags: review?(neil)
Attachment #404064 - Flags: review?(neil) → review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Is this fixed? I downloaded latest Firefox trunk, but it seems bug is still in there. test in: http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/ firefox-3.7a1pre.en-US.mac.dmg 06-Oct-2009 04:33 23M
Can we get this on 1.9.2? Jetpack's menu impl (bug 494651) allows popups on arbitrary nodes in content via nsIPopupBoxObject.openPopup, and after_pointer is the best position for that. It's not a must since other positions are passable, but it would be nice.
Flags: wanted1.9.2?
Comment on attachment 404064 [details] [diff] [review] fix See previous comment.
Attachment #404064 - Flags: approval1.9.2?
Flags: wanted1.9.2? → blocking1.9.2+
Priority: -- → P2
This still bugs to me on Mac. Please check an attached screen shot. I open tooltip like following: tooltip.openPopup(target, "after_pointer", 16, 8, false, false); "before_end", or the other method works fine and this happens only on Mac, not happens on Windows.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #410321 - Flags: review?
Attachment #410321 - Flags: review?
Please attach a testcase showing what you think is wrong.
Attached xpi file will reproduce the bug. on Mac: Popup open wrong place. If you modify overlay.js Line:5 to 'before_end' or something else, it works. on Windows: It works appropriately.
Attachment #410324 - Flags: review?
P.S. I tested this on Firefox 3.5.4 and 3.6b1 for Mac & Windows. Only Firefox 3.6b1 on Mac couldn't handle this.
Don't see any problem with this, either on Mac on Windows. The panel appears in the right place. If you can make a simple testcase (just one file, not an extension) which shows an issue, please file a new bug.
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Wait, you're testing on 3.6b1? Or a nightly build? The patch only went into 3.6 last week, so if you're using a build earlier than that, you won't see the fix.
Grr, yes, I tested on 3.6b1. Downlaoded 3.6b2pre and confirmed that the bug is fixed. Thanks!
Neil, is it expected that the tooltip of the testcase doesn't close when you close the opened panel just by clicking in the white area? It even stays on top when I switch to other applications. Tested with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2b2pre) Gecko/20091104 Namoroka/3.6b2pre ID:20091104033600
Target Milestone: --- → mozilla1.9.3a1
The 'tooltip' should not close as the testcase never closes it. Note that, despite using the <tooltip> tag, it isn't being opened as a tooltip, so the normal tooltip event handling isn't occurring.
Attachment #410324 - Flags: review?
Ah ok, so comparing the behavior in Namoroka with Shiretoko shows me that we have a vertical offset to the search button now. While in Shiretoko the popup is opened directly beneath the button it's now shifted down by around 20px.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: