diff options
author | Pushkar Joshi | 2012-03-28 11:15:15 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-03-28 11:15:15 -0700 |
commit | 0f5967e1124da8d65e1c35d2a9e1ef6259269348 (patch) | |
tree | f16710ca6ba24ffe36bb1f0f18dddd3fdf305b18 | |
parent | 02a34df0ec3201199d209d43f621898b5607c150 (diff) | |
download | ninja-0f5967e1124da8d65e1c35d2a9e1ef6259269348.tar.gz |
turn off changing the left and top of the brush stroke canvas
-rwxr-xr-x | js/lib/geom/brush-stroke.js | 4 |
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"); |