Skip to content

Highlight & annotation alignement drift issue on Chrome #1298

Open
@svalat

Description

Hi,
I'm using the highlight plugin and a derivated plugin (annotator : https://github.com/memtt/malt/blob/11f2e71dedc024eb66d8d26da26e9e48097d6352/src/webview/client-files/app/js/prism.js#L889) to annotate the source code.

It works well on firefox but on chrome the annotation and highlight are missaligned as you can see on the picture. For showing the issue I printed the line number in the annotation instead of the real content and we clearly see they are miss-aligned. Any idea ? I tried to play with the isLineHeightRounded funciton without any success. There is a small drift because the annotation at the top of the file are well placed, I start to see a one line shift after ~250 lines.

capture du 2018-02-16 13-28-00

Cheers.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions