diff options
author | Valerio Virgillito | 2012-05-10 16:49:18 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-10 16:49:18 -0700 |
commit | 90d158a3372b6c8ac2deb8b82070d76135e72397 (patch) | |
tree | 7f99f56cc61cb098ca0366a7d7cdea1c9a9040e7 /js/panels | |
parent | 8f9be38f9a9ef9c5ee78ae59912ad9254b78a16e (diff) | |
download | ninja-90d158a3372b6c8ac2deb8b82070d76135e72397.tar.gz |
Fixing the components double click center stage position.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels')
-rwxr-xr-x | js/panels/components-panel.reel/components-panel.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/panels/components-panel.reel/components-panel.js b/js/panels/components-panel.reel/components-panel.js index 171bef57..87d5082d 100755 --- a/js/panels/components-panel.reel/components-panel.js +++ b/js/panels/components-panel.reel/components-panel.js | |||
@@ -404,8 +404,8 @@ exports.ComponentsPanel = Montage.create(Component, { | |||
404 | //if(!this.centerStage) { | 404 | //if(!this.centerStage) { |
405 | var top, left; | 405 | var top, left; |
406 | 406 | ||
407 | top = ~~((parseFloat(this.application.ninja.elementMediator.getProperty(this.application.ninja.currentDocument.documentRoot, "height"))) / 2); | 407 | top = (this.application.ninja.stage.canvas.height / 2); // ~~((parseFloat(this.application.ninja.elementMediator.getProperty(this.application.ninja.currentDocument.documentRoot, "height"))) / 2); |
408 | left = ~~((parseFloat(this.application.ninja.elementMediator.getProperty(this.application.ninja.currentDocument.documentRoot, "width"))) / 2); | 408 | left = (this.application.ninja.stage.canvas.width / 2); //~~((parseFloat(this.application.ninja.elementMediator.getProperty(this.application.ninja.currentDocument.documentRoot, "width"))) / 2); |
409 | //this.centerStage = [top, left]; | 409 | //this.centerStage = [top, left]; |
410 | return [left, top]; | 410 | return [left, top]; |
411 | //} | 411 | //} |