From 7a11c466c16bbfb04e0e677a5006e037d0037395 Mon Sep 17 00:00:00 2001 From: Jimmy Domagala-Tang Date: Thu, 3 Aug 2023 10:43:06 -0400 Subject: [PATCH] Merge pull request #14147 from overleaf/jdt-synctex-highlight-alignment fix synctex highlight height GitOrigin-RevId: 521de65269cf22d3298a154a0a38e8a4c7e88764 --- .../web/frontend/js/features/pdf-preview/util/highlights.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/pdf-preview/util/highlights.js b/services/web/frontend/js/features/pdf-preview/util/highlights.js index 3c0db30b3a..04655ee58b 100644 --- a/services/web/frontend/js/features/pdf-preview/util/highlights.js +++ b/services/web/frontend/js/features/pdf-preview/util/highlights.js @@ -16,7 +16,7 @@ export function buildHighlightElement(highlight, wrapper) { const element = document.createElement('div') element.style.left = Math.floor(pageView.div.offsetLeft + left) + 'px' - element.style.top = Math.floor(pageView.div.offsetTop + top + 10) + 'px' + element.style.top = Math.floor(pageView.div.offsetTop + top) + 'px' element.style.width = Math.ceil(right - left) + 'px' element.style.height = Math.ceil(bottom - top) + 'px' element.style.backgroundColor = 'rgba(255,255,0)'