Closed
Bug 81615
Opened 23 years ago
Closed 16 years ago
Tooltips for elements in popups appear in unexpected position.
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
WORKSFORME
Future
People
(Reporter: william.cook, Assigned: zhayupeng)
References
Details
(Keywords: helpwanted)
Attachments
(3 files, 6 obsolete files)
1.21 KB,
application/vnd.mozilla.xul+xml
|
Details | |
5.06 KB,
patch
|
Details | Diff | Splinter Review | |
1.19 KB,
patch
|
Details | Diff | Splinter Review |
From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) BuildID: - If you try to display a tooltip on an element that is displayed in a popup window the tooltip will instead be displayed somewhere off to the bottom-right of the window. Reproducible: Always Steps to Reproduce: 1. create a popup window 2. give an element within the popup the tooltip/tip attributes 3. open the popup and mouseover the element 4. the tooltip will appear somewhere off to the bottom-right of the window Actual Results: [tip element] [tooltip] Expected Results: [tip element] [tooltip]
Reporter | ||
Comment 1•23 years ago
|
||
Comment 4•23 years ago
|
||
May God have mercy on us all. The 212 bug spam-o-rama is Now!
QA Contact: aegis → jrgm
This is because we must adjust the mouse point according to the popup object. Taking...
Assignee: pinkerton → kyle.yuan
Comment 8•22 years ago
|
||
Kyle, make sure you have mailed the people you want to review this patch... bugmail is not going to be sufficient to get their attention. :(
Reporter | ||
Comment 9•22 years ago
|
||
Extending the patch for the case where a tooltipped(?) element sits within a popup window.
Reporter | ||
Comment 10•22 years ago
|
||
Attachment #35133 -
Attachment is obsolete: true
Comment 11•22 years ago
|
||
William, thanks for your patch, I'm going to merge them together, and revising them for a better job.
Comment 12•22 years ago
|
||
My previous can't work with <popup> and <optgroup>. Now that was fixed. Unfortunately it still can't work with multi-level popups. And it affects the mouse move performance, that is unacceptable. I should cache the event target, then do adjusting when tooltip was going to show. Will do that tomorrow.
Attachment #90750 -
Attachment is obsolete: true
Attachment #90764 -
Attachment is obsolete: true
Comment 13•22 years ago
|
||
*** Bug 127510 has been marked as a duplicate of this bug. ***
Comment 14•22 years ago
|
||
In this patch, I use the screen point, instead of client point, to locate the tooltip window. It works fine with any kind of popup widget, such as combobox-dropdown list (including optgroup), popup, popup menu. It doesn't affect any tooltips of non-popup widget. Seeking r= again.
Attachment #90769 -
Attachment is obsolete: true
Comment 15•22 years ago
|
||
*** Bug 121095 has been marked as a duplicate of this bug. ***
Comment 16•22 years ago
|
||
My previous fix is wrong, because I didn't find out the right widget to convert screent point, so it worked incorrectly with attachment listbox.
Attachment #90932 -
Attachment is obsolete: true
Comment 17•22 years ago
|
||
*** Bug 158532 has been marked as a duplicate of this bug. ***
Comment 18•22 years ago
|
||
*** Bug 153037 has been marked as a duplicate of this bug. ***
Comment 19•22 years ago
|
||
kyle, - nsIWidget::ScreenToWidget() is not implemented on all platforms have you tested this fix on Linux or other platform ? - do we really need both mMouseClientX and mScreenClientX (the same for Y) ?
Comment 20•22 years ago
|
||
Jan, you are so awesome. ScreenToWidget() doesn't work in GTK. I use WidgetToScreen() instead. mMouseClientX/Y removed too. Could you give me an example of tooltip for <tree>? I want to make sure that my patch doesn't break it.
Attachment #91043 -
Attachment is obsolete: true
Comment 21•22 years ago
|
||
I think this bug should be investigated deeper. Look at bug 78344. I think it has something to do with this bug Also, this patch is not the real fix, just an inspiration.
Comment 22•22 years ago
|
||
ccing people from bug 78344
Comment 23•22 years ago
|
||
forgot to say that Kyle's patch looks good, I just want to make sure we are on right track.
Comment 24•19 years ago
|
||
*** Bug 313673 has been marked as a duplicate of this bug. ***
Comment 25•18 years ago
|
||
Does this bug appear on MACs and linux, or is it windows only? Jan in comment #21 >.. > I think this bug should be investigated deeper. > Look at bug 78344. I think it has something to do with this bug Related perhaps, but this bug predates the patch for bug 78344. is bug 344492 a dup? (fails for windows trunk, but can't speak for MACs and Jesse's comment)
No longer blocks: 121095
QA Contact: jrgmorrison → xptoolkit.widgets
Comment 26•16 years ago
|
||
Do you see this? Comment 20 says it doesn't work in GTK. WFM windows attachment 90765 [details] Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b4pre) Gecko/2008022502 SeaMonkey/2.0a1pre xref bug 344492
Severity: minor → normal
Keywords: helpwanted
Comment 27•16 years ago
|
||
Neil Deakin rewrote most of the xul popup code for Gecko 1.9, any problem with tooltips is a different bug and none of these patches are relevant any more.
Comment 28•16 years ago
|
||
WFM then. Thanks Ratty
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•