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)
Tracking
()
RESOLVED
DUPLICATE
of bug 1712669
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.
Reporter | ||
Comment 1•21 years ago
|
||
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
Comment 3•21 years ago
|
||
Confirming using:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040704
Firefox/0.9.0+
Comment 4•21 years ago
|
||
Not layout, really....
Assignee: nobody → guifeatures
Component: Layout → XP Apps: GUI Features
QA Contact: core.layout
Comment 5•21 years ago
|
||
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....
Reporter | ||
Updated•20 years ago
|
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
Reporter | ||
Comment 6•17 years ago
|
||
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
Comment 7•17 years ago
|
||
Filter "spam" on "guifeatures-nobody-20080610".
Assignee: guifeatures → jag
QA Contact: xptoolkit.widgets
Updated•16 years ago
|
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.
Comment 10•10 years ago
|
||
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
Updated•8 years ago
|
Priority: -- → P3
Whiteboard: tpi:+
Comment 11•7 years ago
|
||
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).
Comment 12•7 years ago
|
||
@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.
Comment 13•4 years ago
|
||
Comment 14•3 years ago
|
||
¡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
status-firefox96:
--- → affected
status-firefox97:
--- → affected
status-firefox98:
--- → affected
status-firefox-esr91:
--- → affected
Updated•2 years ago
|
Severity: normal → S3
Comment 15•2 years ago
|
||
Closing as duplicate of bug 1712669 since that's where the most recent activity occurred.
You need to log in
before you can comment on or make changes to this bug.
Description
•