OOjs UI tooltip positioned wrong on Chrome with scaled viewport
Open, Needs TriagePublic


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

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 4 2017, 2:10 PM