diff options
author | Nivesh Rajbhandari | 2012-05-29 14:55:19 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-05-29 14:55:19 -0700 |
commit | 961830a1ab076db70577df735f43cae5e8559e83 (patch) | |
tree | 9247b68ad2707c0632a3b3fa52d8d82c8d171d6d /js/stage/stage.reel | |
parent | f3a019a6aad13c9c4bd84546c91a0b16ad04c0cd (diff) | |
download | ninja-961830a1ab076db70577df735f43cae5e8559e83.tar.gz |
Moving layout and stageDeps' handleOpenDocument into stage.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/stage/stage.reel')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index d8684739..44d6eadb 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -305,8 +305,7 @@ exports.Stage = Montage.create(Component, { | |||
305 | this._scrollLeft = 0; | 305 | this._scrollLeft = 0; |
306 | this._scrollTop = 0; | 306 | this._scrollTop = 0; |
307 | 307 | ||
308 | this.stageDeps.handleOpenDocument(); | 308 | this.initialize3DOnOpenDocument(); |
309 | this.layout.handleOpenDocument(); | ||
310 | 309 | ||
311 | if(designView._template) { | 310 | if(designView._template) { |
312 | var initialLeft = parseInt((this.canvas.width - designView._template.size.width)/2); | 311 | var initialLeft = parseInt((this.canvas.width - designView._template.size.width)/2); |
@@ -1079,6 +1078,18 @@ exports.Stage = Montage.create(Component, { | |||
1079 | this.application.ninja.toolsSplitter.restore(); | 1078 | this.application.ninja.toolsSplitter.restore(); |
1080 | this.application.ninja.optionsSplitter.restore(); | 1079 | this.application.ninja.optionsSplitter.restore(); |
1081 | } | 1080 | } |
1081 | }, | ||
1082 | |||
1083 | initialize3DOnOpenDocument: { | ||
1084 | value: function() { | ||
1085 | |||
1086 | workingPlane = [0,0,1,0]; | ||
1087 | |||
1088 | this.snapManager._isCacheInvalid = true; | ||
1089 | this.snapManager.setupDragPlaneFromPlane (workingPlane); | ||
1090 | |||
1091 | this.drawUtils.initializeFromDocument(); | ||
1092 | } | ||
1082 | } | 1093 | } |
1083 | 1094 | ||
1084 | }); \ No newline at end of file | 1095 | }); \ No newline at end of file |