Page MenuHomePhabricator

Preview has wrong location in MathML mode
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:

  • Hover over any MathML formula with existing MathWikiBase reference

What happens?:
Preview pops up at correct height, but at the leftmost place of the website.

What should have happened instead?:
Preview should have pop up right next (over or under) to the formula.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Math Version 500b9bcefcf399228b67b1dffbd45c50fde9693a

Other information (browser name/version, screenshots, etc.):
Currently, the preview window has the wrong location when hovering over a MathML formula.
The y-location is correct, but the x-location is always at the leftmost position.
This is because the Popup extension needs the values offsetWidth and offsetHeight (the layout size) to work correctly.
[Example image]
Tested in Firefox, Chrome, Edge, Safari.
The location is correct in SVG mode.
There are no warning, etc. in browser console.

Event Timeline

Change #1099781 had a related patch set uploaded (by FrederikHennecke1; author: FrederikHennecke1):

[mediawiki/extensions/Math@master] Fix for Preview has wrong location in MathML mode

https://gerrit.wikimedia.org/r/1099781

Small note: The interaction with Popup is currently broken (see T381310). So an older version of Extension:Popup should be used to test.

Change #1099781 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Fix for Preview has wrong location in MathML mode

https://gerrit.wikimedia.org/r/1099781

Change #1105073 had a related patch set uploaded (by Krinkle; author: FrederikHennecke1):

[mediawiki/extensions/Math@REL1_43] Fix for Preview has wrong location in MathML mode

https://gerrit.wikimedia.org/r/1105073

Change #1105073 merged by jenkins-bot:

[mediawiki/extensions/Math@REL1_43] Fix for Preview has wrong location in MathML mode

https://gerrit.wikimedia.org/r/1105073