aboutsummaryrefslogtreecommitdiff
path: root/js/stage/layout.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/stage/layout.js')
-rwxr-xr-xjs/stage/layout.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/stage/layout.js b/js/stage/layout.js
index a2f81e97..28484b71 100755
--- a/js/stage/layout.js
+++ b/js/stage/layout.js
@@ -111,11 +111,11 @@ exports.Layout = Montage.create(Component, {
111 // Make an array copy of the line node list which is not an array like object 111 // Make an array copy of the line node list which is not an array like object
112 this.domTree = this.application.ninja.currentDocument.model.views.design.getLiveNodeList(true); 112 this.domTree = this.application.ninja.currentDocument.model.views.design.getLiveNodeList(true);
113 // Index of the current container 113 // Index of the current container
114 containerIndex = this.domTree.indexOf(this.application.ninja.currentSelectedContainer); 114 containerIndex = this.domTree.indexOf(this.currentDocument.model.domContainer);
115 115
116 if(containerIndex < 0) { 116 if(containerIndex < 0) {
117 // Stage is the container. 117 // Stage is the container.
118 this.domTree = Array.prototype.slice.call(this.application.ninja.currentSelectedContainer.childNodes, 0); 118 this.domTree = Array.prototype.slice.call(this.currentDocument.model.domContainer.childNodes, 0);
119 } else { 119 } else {
120 // Child nodes of the container 120 // Child nodes of the container
121 this.domTree = Array.prototype.slice.call(this.domTree[containerIndex].childNodes, 0); 121 this.domTree = Array.prototype.slice.call(this.domTree[containerIndex].childNodes, 0);
@@ -213,7 +213,7 @@ exports.Layout = Montage.create(Component, {
213 bounds3D[j] = tmpPt; 213 bounds3D[j] = tmpPt;
214 } 214 }
215 215
216 if(item.uuid === this.application.ninja.currentSelectedContainer.uuid) { 216 if(item.uuid === this.currentDocument.model.domContainer.uuid) {
217 this.ctx.save(); 217 this.ctx.save();
218 this.ctx.strokeStyle = "#C61F00"; 218 this.ctx.strokeStyle = "#C61F00";
219 219