mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
set the size of the pdf container using jquery methods
This commit is contained in:
parent
85750dfeb6
commit
7071ee3540
1 changed files with 2 additions and 2 deletions
|
@ -141,8 +141,8 @@ define [
|
|||
canvas.height(newHeight + 'px')
|
||||
canvas.width(newWidth + 'px')
|
||||
|
||||
element.canvas[0].height = newHeight
|
||||
element.canvas[0].width = newWidth
|
||||
element.canvas.height(newHeight)
|
||||
element.canvas.width(newWidth)
|
||||
|
||||
if pixelRatio != 1
|
||||
ctx.scale(pixelRatio, pixelRatio)
|
||||
|
|
Loading…
Reference in a new issue