MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

MathMenu: Wrong left value when using position: relative on <body>

Open Loginisalreadytaken opened this issue 11 years ago • 5 comments

Right-clicking an expression positions the menu too far to the right, adding the margin of <body>: http://foshin.com Perhaps this kind of things only happen to me since <body> usually covers the width of the window. I have disabled the menu in the actual project and it's a tiny issue, but still..

Edit: Oops. My <body> also has position: relative.

Loginisalreadytaken avatar Feb 04 '15 19:02 Loginisalreadytaken

It seems the combination of position and max-width. We'll look into it.

pkra avatar Feb 26 '15 08:02 pkra

@pkra Is there any update on this? This is still broken in 2.7.5.

vincerubinetti avatar Feb 12 '19 15:02 vincerubinetti

@vincerubinetti, para is no longer with the MathJax project.

The link in the original post no longer seems to be using MathJax, so I am not able to reproduce the issue. If you have a self-contained example that illustrates the problem, that would help.

dpvc avatar Feb 12 '19 15:02 dpvc

@dpvc Here you go:

https://jsfiddle.net/u934p7qx/

As mentioned above by @pkra, the issue occurs when <body> has properties position: relative and width: [any] or max-width: [any].

vincerubinetti avatar Feb 12 '19 15:02 vincerubinetti

Thanks, that's helpful. I will see what I can do.

dpvc avatar Feb 12 '19 15:02 dpvc