aboutsummaryrefslogtreecommitdiff
path: root/js/lib/geom
diff options
context:
space:
mode:
authorPushkar Joshi2012-03-28 11:15:15 -0700
committerPushkar Joshi2012-03-28 11:15:15 -0700
commit0f5967e1124da8d65e1c35d2a9e1ef6259269348 (patch)
treef16710ca6ba24ffe36bb1f0f18dddd3fdf305b18 /js/lib/geom
parent02a34df0ec3201199d209d43f621898b5607c150 (diff)
downloadninja-0f5967e1124da8d65e1c35d2a9e1ef6259269348.tar.gz
turn off changing the left and top of the brush stroke canvas
Diffstat (limited to 'js/lib/geom')
-rwxr-xr-xjs/lib/geom/brush-stroke.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/geom/brush-stroke.js b/js/lib/geom/brush-stroke.js
index d849e3d7..22209815 100755
--- a/js/lib/geom/brush-stroke.js
+++ b/js/lib/geom/brush-stroke.js
@@ -545,8 +545,8 @@ var BrushStroke = function GLBrushStroke() {
545 var newLeft = Math.round(this._stageWorldCenter[0] - 0.5 * bboxWidth); 545 var newLeft = Math.round(this._stageWorldCenter[0] - 0.5 * bboxWidth);
546 var newTop = Math.round(this._stageWorldCenter[1] - 0.5 * bboxHeight); 546 var newTop = Math.round(this._stageWorldCenter[1] - 0.5 * bboxHeight);
547 //assign the new position, width, and height as the canvas dimensions through the canvas controller 547 //assign the new position, width, and height as the canvas dimensions through the canvas controller
548 CanvasController.setProperty(this._canvas, "left", newLeft+"px"); 548 //CanvasController.setProperty(this._canvas, "left", newLeft+"px");
549 CanvasController.setProperty(this._canvas, "top", newTop+"px"); 549 //CanvasController.setProperty(this._canvas, "top", newTop+"px");
550 550
551 CanvasController.setProperty(this._canvas, "width", bboxWidth+"px"); 551 CanvasController.setProperty(this._canvas, "width", bboxWidth+"px");
552 CanvasController.setProperty(this._canvas, "height", bboxHeight+"px"); 552 CanvasController.setProperty(this._canvas, "height", bboxHeight+"px");