From 0f5967e1124da8d65e1c35d2a9e1ef6259269348 Mon Sep 17 00:00:00 2001 From: Pushkar Joshi Date: Wed, 28 Mar 2012 11:15:15 -0700 Subject: turn off changing the left and top of the brush stroke canvas --- js/lib/geom/brush-stroke.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js') 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() { var newLeft = Math.round(this._stageWorldCenter[0] - 0.5 * bboxWidth); var newTop = Math.round(this._stageWorldCenter[1] - 0.5 * bboxHeight); //assign the new position, width, and height as the canvas dimensions through the canvas controller - CanvasController.setProperty(this._canvas, "left", newLeft+"px"); - CanvasController.setProperty(this._canvas, "top", newTop+"px"); + //CanvasController.setProperty(this._canvas, "left", newLeft+"px"); + //CanvasController.setProperty(this._canvas, "top", newTop+"px"); CanvasController.setProperty(this._canvas, "width", bboxWidth+"px"); CanvasController.setProperty(this._canvas, "height", bboxHeight+"px"); -- cgit v1.2.3