Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Previewers bug #1496 #1497

Merged
merged 2 commits into from
Aug 19, 2018
Merged

Conversation

RunDevelopment
Copy link
Member

This PR fixes #1496.

The problem was a bug unique to Firefox which causes offsetTop of span.token to always be 0 under certain conditions.
It only occurred together with of the line-number plugin because setting position: relative for the pre > code elements triggers that FF bug.

The offset is now calculated using bounding boxes.

I tested this in Chrome, Edge, IE, FF, and Opera.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Previewers" plugin dont work correctly with the "Line Numbers"
2 participants