| Index: chrome/renderer/resources/offline.js
|
| diff --git a/chrome/renderer/resources/offline.js b/chrome/renderer/resources/offline.js
|
| index fbf46d98d03abeffbbc3989a3f30ae83926db53e..75404cc9e2618a33a09e5db79240f20345c2374d 100644
|
| --- a/chrome/renderer/resources/offline.js
|
| +++ b/chrome/renderer/resources/offline.js
|
| @@ -793,6 +793,11 @@ Runner.updateCanvasScaling = function(canvas, opt_width, opt_height) {
|
| // our canvas element.
|
| context.scale(ratio, ratio);
|
| return true;
|
| + } else if (devicePixelRatio == 1) {
|
| + // Reset the canvas width / height. Fixes scaling bug when the page is
|
| + // zoomed and the devicePixelRatio changes accordingly.
|
| + canvas.style.width = canvas.width + 'px';
|
| + canvas.style.height = canvas.height + 'px';
|
| }
|
| return false;
|
| };
|
|
|