Page MenuHomePhabricator

OOUI tooltip positioned wrongly on Chrome with scaled viewport
Closed, InvalidPublic

Description

While working on the RevisionSlider and improving the mobile device support there [1][2], I stumbled over an issue with jQuery giving a wrong offsets when used with Chrome and scaled viewport. [3] This leads to misplaced tooltips since they rely on the offset() values.

Steps to reproduce:

Of cause this might affect also other things where $().offset() is used.

In my patch I fixed offset calculation at some other part where I needed it with the help of the workaround you find in the GitHub issue. [3]

[1] https://phabricator.wikimedia.org/T164249
[2] https://gerrit.wikimedia.org/r/#/c/351642/
[3] https://github.com/jquery/jquery/issues/3187

Event Timeline

Volker_E renamed this task from OOjs UI tooltip positioned wrong on Chrome with scaled viewport to OOUI tooltip positioned wrong on Chrome with scaled viewport .Jan 17 2018, 12:48 AM
Jdforrester-WMF renamed this task from OOUI tooltip positioned wrong on Chrome with scaled viewport to OOUI tooltip positioned wrongly on Chrome with scaled viewport .Oct 30 2020, 4:52 PM

I can't reproduce the issue anymore. Might be solved upstream.