aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-05 13:52:52 -0700
committerValerio Virgillito2012-06-05 13:52:52 -0700
commitfae2c19f64a00098fe42da5e9c6cb7cdcc8c8721 (patch)
tree3bf14cffa3fac4fd0eac965e258ba4f19fd35c98
parent9a429f22a958fe372309e241c480923b7462d426 (diff)
parent1f1234c25727d0d379fbf706029a18614ec35b5f (diff)
downloadninja-fae2c19f64a00098fe42da5e9c6cb7cdcc8c8721.tar.gz
Merge pull request #268 from mqg734/CompassLocation
Compass should draw in lower-left regardless of the stage height.
-rwxr-xr-xjs/helper-classes/3D/draw-utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js
index a793b643..eef28dce 100755
--- a/js/helper-classes/3D/draw-utils.js
+++ b/js/helper-classes/3D/draw-utils.js
@@ -1217,7 +1217,7 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, {
1217 var saveLineWidth = this._lineWidth; 1217 var saveLineWidth = this._lineWidth;
1218 1218
1219 var origLeft = 60; 1219 var origLeft = 60;
1220 var origTop = this.snapManager.getStageHeight() - 60; 1220 var origTop = tmpCanvas.height - 60;
1221 1221
1222 var mat = this.viewUtils.getMatrixFromElement( this._sourceSpaceElt ); 1222 var mat = this.viewUtils.getMatrixFromElement( this._sourceSpaceElt );
1223 var tMat = Matrix.Translation([origLeft,origTop,0]); 1223 var tMat = Matrix.Translation([origLeft,origTop,0]);