react-pdf-highlighter icon indicating copy to clipboard operation
react-pdf-highlighter copied to clipboard

Fix AreaHighlight positioning issue

Open niowniow opened this issue 1 year ago • 0 comments

The 1px border shifted each rendered AreaHighlight by an offset. The more AreaHighlights were, added the bigger the shift. The consequence was, that if many AreaHighlights were added to a document, the highlights were not rendered to the correct positions. It also resulted in a misfit between the position of a highlight that was drawn and how it was rendered after the annotation was added. Removing the css border Attribute fixes these issues. If the border is desired, it can be added to the AreaHighlight__part css

niowniow avatar Jan 18 '23 13:01 niowniow