From 8a58e6f400dfb5e8768100bd24bcf35b347a339d Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Mon, 8 Feb 2016 13:39:10 -0700 Subject: [PATCH] Zero-out Canvas CSS transform 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 479f5c0d0..7e6787dfe 100644 --- a/js/display/CanvasBlock.js +++ b/js/display/CanvasBlock.js @@ -79,6 +79,7 @@ define( function( require ) { this.canvas.style.height = size.height + 'px'; this.wrapper.resetStyles(); this.canvasDrawOffset.setXY( 0, 0 ); + Util.unsetTransform( this.canvas ); }, setSizeFitBounds: function() {