Closed Bug 248718 Opened 21 years ago Closed 2 years ago

Tooltip placement should be based on the current cursor

Categories

(Core :: XUL, enhancement, P3)

x86
All
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1712669
Tracking Status
firefox-esr91 --- affected
firefox96 --- affected
firefox97 --- affected
firefox98 --- affected

People

(Reporter: markus.lindstrom, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Keywords: testcase, Whiteboard: tpi:+)

Attachments

(3 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040625 Firefox/0.9 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040625 Firefox/0.9 I have noticed something rather odd regarding Gecko generating tooltips. If you do the steps below, you'll see that they are generated in an odd way. More specifically, try triggering the tooltips of one of the links on the page. Notice something? The tooltip is _perfectly_ well positioned with regards to the freshly appeared hand cursor. I think this is the problem: it seems that Gecko makes tooltips appear at all times by assuming that the cursor is a hand. This brings up the problem I've been experiencing: when assigning a title attribute to elements such as <p> and <div> (those are the ones I've found so far, by accident), hovering the mouse over them triggers a caret cursor since they contain text, but the tooltip appears awkwardly low with regards to the cursor. Reproducible: Always Steps to Reproduce: 1. Go to http://www.lalain.firstream.net/mamour/ 2. Trigger the tooltip on the first <div> element containing the text "Ouaf." 3. Notice that it appears a lot further down than the actual mouse cursor. 4. Do the same with one of the links further down on the page. 5. Notice that the tooltip appears appropriately relative to the hand cursor. Actual Results: Gecko renders the tooltip as if the current cursor was the hand cursor, thus making the tooltip position itself very awkwardly when there's a caret cursor (for example). Expected Results: Gecko should "know" the size and position of the current mouse cursor, in order to generate the tooltips in an appropriate manner. I triggered this bug in Mozilla 1.7 (milestone) too, which is why I filed this in Browser.
I threw this simple testcase together to easily demonstrate the problem. Passing the mouse cursor over the text changes it into a caret cursor, thus making the tooltip appear awkwardly low on the page. On the other hand, the tooltip assigned to the link appears appropriately, at the bottom edge of the hand cursor.
(In reply to comment #0) > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040625 Firefox/0.9 > Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040625 Firefox/0.9 > > I have noticed something rather odd regarding Gecko generating tooltips. Same behaviour on Mozilla 1.7 WinXP - Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616
Confirming using: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040704 Firefox/0.9.0+
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Not layout, really....
Assignee: nobody → guifeatures
Component: Layout → XP Apps: GUI Features
QA Contact: core.layout
We don't use native tooltips. This means that we have to guess where to put the tooltip. Worse, each theme has to have its own hardcoded copy of the guess....
Product: Core → Mozilla Application Suite
Depends on: 113009
Moving to Core since this bug's not specific to SeaMonkey.
Component: XP Apps: GUI Features → XP Toolkit/Widgets
Product: Mozilla Application Suite → Core
Version: Trunk → unspecified
Filter "spam" on "guifeatures-nobody-20080610".
Assignee: guifeatures → jag
QA Contact: xptoolkit.widgets
Assignee: jag → nobody
Isn't this a duplicate of bug 296191?
(In reply to comment #8) > Isn't this a duplicate of bug 296191? Sorry, no *duplicate*, but related: the bigger the cursor, the more tool tip is hidden by the cursor.
Other browsers don't do this either.
Severity: normal → enhancement
OS: Windows XP → All
Summary: Tooltip generated by title attribute appears unappropriately compared to current cursor. → Tooltip placement should be based on the current cursor
Version: unspecified → Trunk
Blocks: 557754
Blocks: 296191
Priority: -- → P3
Whiteboard: tpi:+
Attached file testcase for bug 248718 (deleted) —
Testcase: Move mouse pointer over the text, cursor changes to custom one, title text appears, but *behind* the cursor instead of *below* the cursor (compare with Opera - that browser gets it right).
@Frankie: "Other browsers don't do this either." Current version of Opera places the title below (instead of behind) the cursor, i.e. it is possible to do it right.

¡Hola y'all!

Happy 🌮 Tuesday!

This is still a problem on Nightly built from https://hg.mozilla.org/mozilla-central/rev/6a46314d2667306afb209148f6c575f2da3f9899

Updating flags FWIW.

¡Gracias!
Alex

Severity: normal → S3

Closing as duplicate of bug 1712669 since that's where the most recent activity occurred.

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1712669
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: