Tooltips show at the wrong location under UI scaling

NEW
Unassigned

Status

()

11 years ago
10 years ago

People

(Reporter: stuart.morgan+bugzilla, Unassigned)

Tracking

(Blocks: 2 bugs)

Trunk
x86
Mac OS X
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

11 years ago
Tooltips are given to us in Gecko coordinates, and we aren't account for scaling correctly, so they show X times too far down and to the right (where X is the scale factor).

I've found that tooltips and hover effects are unreliable in general under scaling (which would be another, probably core, bug, that I haven't pinned down and filed yet); for testing this issue, I've found that starting a drag of the image works well to force the tooltip to display.
(Reporter)

Comment 1

11 years ago
Actually, we aren't doing anything wrong; Gecko is giving us the wrong values.
The expectation is that nsITooltipListener::OnShowTooltip would give us Gecko
coordinates (meaning scaled), but instead we get a point that is device pixels
from the upper left corner of the ChildView.

I would guess that it's nsChildView::WidgetToScreen, since that definitely
makes bad assumptions about window/screen vs view coordinates, but since none
of Cocoa Widgets has been audited for this kind of problem it's hard to be
sure.
Assignee: nobody → joshmoz
Blocks: 351709, 406720
No longer blocks: 406717
Component: General → Widget: Cocoa
Product: Camino → Core
QA Contact: general → cocoa

Updated

10 years ago
Assignee: joshmoz → nobody
You need to log in before you can comment on or make changes to this bug.