diff options
author | Nivesh Rajbhandari | 2012-04-24 14:27:54 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-24 14:27:54 -0700 |
commit | d5510229ebd4549ce435e3947874cc37eef27ffb (patch) | |
tree | 24e2ff1a6249ec4133e75dc827353869b1db8952 | |
parent | 915d92707dd07bf5ddcaca7039114649dab61467 (diff) | |
download | ninja-d5510229ebd4549ce435e3947874cc37eef27ffb.tar.gz |
Fixed issue with setting stroke when using the PI.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rwxr-xr-x | js/controllers/elements/shapes-controller.js | 2 |
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 |