Open Bug 429959 Opened 16 years ago Updated 2 years ago

Tooltips show at the wrong location under UI scaling

Categories

(Core :: Widget: Cocoa, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: stuart.morgan+bugzilla, Unassigned)

References

(Blocks 1 open bug)

Details

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.
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
Assignee: joshmoz → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.