mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 17:13:38 -05:00
Merge pull request #14147 from overleaf/jdt-synctex-highlight-alignment
fix synctex highlight height GitOrigin-RevId: 521de65269cf22d3298a154a0a38e8a4c7e88764
This commit is contained in:
parent
dfc9138dd6
commit
1328b442c8
1 changed files with 1 additions and 1 deletions
|
@ -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)'
|
||||
|
|
Loading…
Reference in a new issue