Mercurial > hg > orthanc-stone
diff Applications/StoneWebViewer/WebApplication/pdf-viewer.js @ 1661:e4589378ad8b
warning message about unsupported videos
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 19 Nov 2020 10:29:33 +0100 |
parents | 66e5fcdf5597 |
children | 9ac2a65d4172 |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebApplication/pdf-viewer.js Thu Nov 19 10:21:20 2020 +0100 +++ b/Applications/StoneWebViewer/WebApplication/pdf-viewer.js Thu Nov 19 10:29:33 2020 +0100 @@ -168,6 +168,7 @@ this.pdfDoc.getPage(pageNum).then(function(page) { var viewport = page.getViewport({scale: that.scale}); + that.canvas.style['background-color'] = 'white'; // avoids flickering while the page changes that.canvas.height = viewport.height; that.canvas.width = viewport.width;