diff options
Diffstat (limited to 'js/stage/stage.reel/stage.js')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index 6d421e4b..c7afb95c 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -186,7 +186,7 @@ exports.Stage = Montage.create(Component, { | |||
186 | set: function(value) { | 186 | set: function(value) { |
187 | this._userPaddingLeft = value; | 187 | this._userPaddingLeft = value; |
188 | this._documentOffsetLeft = -value; | 188 | this._documentOffsetLeft = -value; |
189 | this.application.ninja.currentDocument.documentRoot.ownerDocument.getElementsByTagName("HTML")[0].style["padding-left"] = -value + "px"; | 189 | this.application.ninja.currentDocument.model.documentRoot.ownerDocument.getElementsByTagName("HTML")[0].style["padding-left"] = -value + "px"; |
190 | this.userContentLeft = this._documentOffsetLeft; | 190 | this.userContentLeft = this._documentOffsetLeft; |
191 | this.updatedStage = true; | 191 | this.updatedStage = true; |
192 | } | 192 | } |
@@ -197,7 +197,7 @@ exports.Stage = Montage.create(Component, { | |||
197 | set: function(value) { | 197 | set: function(value) { |
198 | this._userPaddingTop = value; | 198 | this._userPaddingTop = value; |
199 | this._documentOffsetTop = -value; | 199 | this._documentOffsetTop = -value; |
200 | this.application.ninja.currentDocument.documentRoot.ownerDocument.getElementsByTagName("HTML")[0].style["padding-top"] = -value + "px"; | 200 | this.application.ninja.currentDocument.model.documentRoot.ownerDocument.getElementsByTagName("HTML")[0].style["padding-top"] = -value + "px"; |
201 | this.userContentTop = this._documentOffsetTop; | 201 | this.userContentTop = this._documentOffsetTop; |
202 | this.updatedStage = true; | 202 | this.updatedStage = true; |
203 | } | 203 | } |
@@ -904,7 +904,7 @@ exports.Stage = Montage.create(Component, { | |||
904 | 904 | ||
905 | setStageAsViewport: { | 905 | setStageAsViewport: { |
906 | value: function() { | 906 | value: function() { |
907 | this.stageDeps.viewUtils.setViewportObj(this.application.ninja.currentDocument.documentRoot); | 907 | this.stageDeps.viewUtils.setViewportObj(this.application.ninja.currentDocument.model.documentRoot); |
908 | } | 908 | } |
909 | }, | 909 | }, |
910 | 910 | ||
@@ -912,7 +912,7 @@ exports.Stage = Montage.create(Component, { | |||
912 | value: function(value) { | 912 | value: function(value) { |
913 | if(!this._firstDraw) | 913 | if(!this._firstDraw) |
914 | { | 914 | { |
915 | var userContent = this.application.ninja.currentDocument.documentRoot; | 915 | var userContent = this.application.ninja.currentDocument.model.documentRoot; |
916 | if (userContent) | 916 | if (userContent) |
917 | { | 917 | { |
918 | var w = this._canvas.width, | 918 | var w = this._canvas.width, |
@@ -943,12 +943,12 @@ exports.Stage = Montage.create(Component, { | |||
943 | { | 943 | { |
944 | case "top": | 944 | case "top": |
945 | plane = [0,1,0,0]; | 945 | plane = [0,1,0,0]; |
946 | plane[3] = this.application.ninja.currentDocument.documentRoot.offsetHeight / 2.0; | 946 | plane[3] = this.application.ninja.currentDocument.model.documentRoot.offsetHeight / 2.0; |
947 | break; | 947 | break; |
948 | 948 | ||
949 | case "side": | 949 | case "side": |
950 | plane = [1,0,0,0]; | 950 | plane = [1,0,0,0]; |
951 | plane[3] = this.application.ninja.currentDocument.documentRoot.offsetWidth / 2.0; | 951 | plane[3] = this.application.ninja.currentDocument.model.documentRoot.offsetWidth / 2.0; |
952 | break; | 952 | break; |
953 | 953 | ||
954 | case "front": | 954 | case "front": |
@@ -967,7 +967,7 @@ exports.Stage = Montage.create(Component, { | |||
967 | setStageView: { | 967 | setStageView: { |
968 | value: function(side) { | 968 | value: function(side) { |
969 | var mat, | 969 | var mat, |
970 | currentDoc = this.application.ninja.currentDocument.documentRoot, | 970 | currentDoc = this.application.ninja.currentDocument.model.documentRoot, |
971 | isDrawingGrid = this.application.ninja.appModel.show3dGrid; | 971 | isDrawingGrid = this.application.ninja.appModel.show3dGrid; |
972 | // Stage 3d Props. | 972 | // Stage 3d Props. |
973 | currentDoc.elementModel.props3D.ResetTranslationValues(); | 973 | currentDoc.elementModel.props3D.ResetTranslationValues(); |