From 92e341f67190a2517c2eabb86637718f0ed01036 Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Mon, 8 Feb 2016 12:10:03 -0700 Subject: [PATCH] Zero-out CanvasBlock offset when the fit is set back to full display. See https://github.com/phetsims/scenery/issues/511 and https://github.com/phetsims/pendulum-lab/issues/126 --- js/display/CanvasBlock.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/display/CanvasBlock.js b/js/display/CanvasBlock.js index 57e1f4ef4..479f5c0d0 100644 --- a/js/display/CanvasBlock.js +++ b/js/display/CanvasBlock.js @@ -78,6 +78,7 @@ define( function( require ) { this.canvas.style.width = size.width + 'px'; this.canvas.style.height = size.height + 'px'; this.wrapper.resetStyles(); + this.canvasDrawOffset.setXY( 0, 0 ); }, setSizeFitBounds: function() {