Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 794f9e8

Browse files
committed
fix(websocket_text_iink_search) bad position of the searching highlight in searching text example MSIS-3185
1 parent e09e53e commit 794f9e8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/v4/websocket_text_iink_search.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,14 @@
4949
const newElement = document.createElement("div");
5050
newElement.style.position = "absolute";
5151
newElement.style.left = mmToPixel(boundingBox.x) + "px";
52-
newElement.style.top = (88 + mmToPixel(boundingBox.y)) + "px";
52+
newElement.style.top = mmToPixel(boundingBox.y) + "px";
5353
newElement.style.height = mmToPixel(boundingBox.height) + "px";
5454
newElement.style.width = mmToPixel(boundingBox.width) + "px";
5555

5656
newElement.classList.add('highlight');
5757
newElement.style.backgroundColor = "yellow";
58-
newElement.style.zIndex = 11;
5958

60-
document.body.appendChild(newElement);
59+
editorElement.appendChild(newElement);
6160
})
6261
}
6362

0 commit comments

Comments
 (0)