Closed Bug 429959 Opened 18 years ago Closed 6 months ago

Tooltips show at the wrong location under UI scaling

Categories

(Core :: Widget: Cocoa, defect, P3)

x86
macOS
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: stuart.morgan+bugzilla, Unassigned)

References

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
Priority: -- → P3

Can't reproduce, a lot has changed since this was filed.

Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.