Closed Bug 81615 Opened 23 years ago Closed 16 years ago

Tooltips for elements in popups appear in unexpected position.

Categories

(Core :: XUL, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: william.cook, Assigned: zhayupeng)

References

Details

(Keywords: helpwanted)

Attachments

(3 files, 6 obsolete files)

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]
Attached file XUL file containing test case. (obsolete) —
->pink/future
Assignee: trudelle → pinkerton
Target Milestone: --- → Future
Marking NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
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
CCing guys who can r= my patch.
Status: NEW → ASSIGNED
Blocks: 121095
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.  :(
Extending the patch for the case where a tooltipped(?) element sits within a
popup window.
Attached file Updated testcase
Attachment #35133 - Attachment is obsolete: true
William, thanks for your patch, I'm going to merge them together, and revising 
them for a better job.
Attached patch merged patch (need work) (obsolete) — Splinter Review
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
*** Bug 127510 has been marked as a duplicate of this bug. ***
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
*** Bug 121095 has been marked as a duplicate of this bug. ***
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
Keywords: review
*** Bug 158532 has been marked as a duplicate of this bug. ***
*** Bug 153037 has been marked as a duplicate of this bug. ***
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) ?
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
Attached patch patch to ponderSplinter Review
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.
ccing people from bug 78344
forgot to say that Kyle's patch looks good, I just want to make sure we are on
right track.
Assignee: yuanyi21 → pete.zha
Status: ASSIGNED → NEW
*** Bug 313673 has been marked as a duplicate of this bug. ***
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
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
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.
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.

Attachment

General

Creator:
Created:
Updated:
Size: