Fix find highlighting regression from #13306.

When we insert extra spans for highlighting we want
them to be positioned normally instead of absolute or
relative.

Fixes #13345.
This commit is contained in:
Brendan Dahl 2021-06-01 15:25:40 -07:00
parent 3456ed271b
commit 1da42e8b8e
2 changed files with 5 additions and 2 deletions

View file

@ -239,7 +239,7 @@ class TextLayerBuilder {
const node = document.createTextNode(content);
if (className) {
const span = document.createElement("span");
span.className = className;
span.className = `${className} appended`;
span.appendChild(node);
div.appendChild(span);
return;