diff options
Diffstat (limited to 'js')
-rwxr-xr-x | js/controllers/elements/shapes-controller.js | 9 |
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(); |