aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-04-24 14:27:54 -0700
committerNivesh Rajbhandari2012-04-24 14:27:54 -0700
commitd5510229ebd4549ce435e3947874cc37eef27ffb (patch)
tree24e2ff1a6249ec4133e75dc827353869b1db8952 /js/controllers/elements
parent915d92707dd07bf5ddcaca7039114649dab61467 (diff)
downloadninja-d5510229ebd4549ce435e3947874cc37eef27ffb.tar.gz
Fixed issue with setting stroke when using the PI.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/controllers/elements')
-rwxr-xr-xjs/controllers/elements/shapes-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js
index 3ada5f82..8d7b74f0 100755
--- a/js/controllers/elements/shapes-controller.js
+++ b/js/controllers/elements/shapes-controller.js
@@ -21,7 +21,7 @@ exports.ShapesController = Montage.create(CanvasController, {
21 switch(p) { 21 switch(p) {
22 case "strokeSize": 22 case "strokeSize":
23 this.setShapeProperty(el, "strokeSize", value); 23 this.setShapeProperty(el, "strokeSize", value);
24 var strokeInfo = value.split(" "); 24 var strokeInfo = njModule.NJUtils.getValueAndUnits(value);
25 val = this.GetValueInPixels(strokeInfo[0], strokeInfo[1]); 25 val = this.GetValueInPixels(strokeInfo[0], strokeInfo[1]);
26 26
27 // TODO - For now, just handle Line, Rectangle and Oval. Eventually, move this into each class's 27 // TODO - For now, just handle Line, Rectangle and Oval. Eventually, move this into each class's