Skip to content

Commit

Permalink
Fix canvas fillImage left/top parameters
Browse files Browse the repository at this point in the history
Previously, they were being ignored.
  • Loading branch information
sophiebits committed May 7, 2014
1 parent 8b2bf7a commit 3b0710c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modes/canvas/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ var Base = Class(Node, {
h = height ? height / img.height : 1;
if (color1 != null) img = recolorImage(img, color1, color2);
this._fill = genericContext.createPattern(img, 'repeat');
this._fillTransform = new Transform(w, 0, 0, h);
this._fillTransform = new Transform(w, 0, 0, h, left, top);
return this.invalidate();
},

Expand Down Expand Up @@ -178,4 +178,4 @@ var Base = Class(Node, {

Base._genericContext = genericContext;

module.exports = Base;
module.exports = Base;

0 comments on commit 3b0710c

Please sign in to comment.