Skip to content

Commit

Permalink
Fix mask vertical offset when trimming is on
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Oct 3, 2024
1 parent 73f3a38 commit d6a89ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viewer/components/refresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function addMasks() {
div.className = 'page-loading-mask'
masks.push(div)
div.style.display = 'none'
div.style.top = page.offsetTop + 'px'
div.style.top = canvas.offsetTop + 'px'
div.style.left = page.offsetLeft + 'px'
div.style.width = Math.min(viewerDom.clientWidth, page.clientWidth) + 'px'
div.style.height = page.clientHeight + 'px'
Expand Down

0 comments on commit d6a89ee

Please sign in to comment.