Skip to content

Commit

Permalink
Merge pull request #1888 from cb1kenobi/timob-8434
Browse files Browse the repository at this point in the history
[TIMOB-8434] Fixed y scaling factor to use x's factor when y is not passed in
  • Loading branch information
nebrius committed Apr 2, 2012
2 parents 5efc8e1 + f627231 commit fcd1960
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mobileweb/titanium/Ti/UI/2DMatrix.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
define(["Ti/_/declare", "Ti/_/Evented", "Ti/Platform"], function(declare, Evented, Platform) {
define(["Ti/_/declare", "Ti/_/Evented", "Ti/_/lang", "Ti/Platform"],
function(declare, Evented, lang, Platform) {

var isFF = Platform.runtime === "gecko",
api,
Expand Down Expand Up @@ -71,7 +72,7 @@ define(["Ti/_/declare", "Ti/_/Evented", "Ti/Platform"], function(declare, Evente
},

scale: function(x, y) {
return new api(mult(this, x, 0, 0, y, 0, 0));
return new api(mult(this, x, 0, 0, lang.val(y, x), 0, 0));
},

translate: function(x, y) {
Expand Down

0 comments on commit fcd1960

Please sign in to comment.