aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-06-05 13:50:27 -0700
committerNivesh Rajbhandari2012-06-05 13:50:27 -0700
commit1f1234c25727d0d379fbf706029a18614ec35b5f (patch)
tree72cecafa90cb1453e96a3a1cf6c3d11472f6c277 /js/helper-classes
parent73a62c95b5635fee903457279f0f5b57f164e0b5 (diff)
downloadninja-1f1234c25727d0d379fbf706029a18614ec35b5f.tar.gz
Compass should draw in lower-left regardless of the stage height.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/helper-classes')
-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]);