aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValerio Virgillito2012-04-13 16:37:19 -0700
committerValerio Virgillito2012-04-13 16:37:19 -0700
commit7ed5215332123d16f819a7a26c651af520a68669 (patch)
treec9a64c50dd4c42cdbd221e35548418fe883c2d13
parente8b4eebc94db3d2dbddb3e493025c426eaeb63e4 (diff)
downloadninja-7ed5215332123d16f819a7a26c651af520a68669.tar.gz
Fixing the shape border
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
-rwxr-xr-xjs/controllers/elements/shapes-controller.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js
index 14cdc473..cd7fa16d 100755
--- a/js/controllers/elements/shapes-controller.js
+++ b/js/controllers/elements/shapes-controller.js
@@ -74,12 +74,9 @@ exports.ShapesController = Montage.create(CanvasController, {
74 w += delta; 74 w += delta;
75 h += delta; 75 h += delta;
76 } 76 }
77 this.application.ninja.elementMediator.setProperties([el], 77
78 { "left": [l + "px"], 78 this.application.ninja.elementMediator.setProperties([{element:el, properties:{left: l + "px", top: t + "px", width: w + "px", height:h + "px"}}], eventType, source);
79 "top": [t + "px"], 79
80 "width": [w + "px"],
81 "height": [h + "px"] },
82 eventType, source );
83 } 80 }
84 el.elementModel.shapeModel.GLGeomObj.setStrokeWidth(val); 81 el.elementModel.shapeModel.GLGeomObj.setStrokeWidth(val);
85 el.elementModel.shapeModel.GLGeomObj.buildBuffers(); 82 el.elementModel.shapeModel.GLGeomObj.buildBuffers();