Skip to content

Commit

Permalink
Zero-out CanvasBlock offset when the fit is set back to full display.…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Feb 8, 2016
1 parent 6b2fddc commit 92e341f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/display/CanvasBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 92e341f

Please sign in to comment.