3
Showing
1 changed file
with
1 additions
and
0 deletions
| ... | @@ -235,6 +235,7 @@ function changePdfOptions(json, edit) { | ... | @@ -235,6 +235,7 @@ function changePdfOptions(json, edit) { |
| 235 | var windowHBG = 0.923 * $(window).height(); | 235 | var windowHBG = 0.923 * $(window).height(); |
| 236 | 236 | ||
| 237 | if(json[0].pwidth > json[0].pheight){ | 237 | if(json[0].pwidth > json[0].pheight){ |
| 238 | console.log('wide') | ||
| 238 | var scaleImage = windowWidth / json[0].pwidth; | 239 | var scaleImage = windowWidth / json[0].pwidth; |
| 239 | var imageHeight = json[0].pheight * scaleImage; | 240 | var imageHeight = json[0].pheight * scaleImage; |
| 240 | var imageWidth = windowWidth; | 241 | var imageWidth = windowWidth; | ... | ... |
-
Please register or sign in to post a comment