aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/3D/snap-manager.js
diff options
context:
space:
mode:
authorKruti Shah2012-07-20 11:38:57 -0700
committerKruti Shah2012-07-20 11:38:57 -0700
commit4436c04c81e0f372b7e03416a2515630de8c72c6 (patch)
treeedfbd366df9d7e7514425561a817fc2c67f398d9 /js/helper-classes/3D/snap-manager.js
parent5741fbc0a2eb1a43017b76406056bc98cdf00297 (diff)
parent936fbd6d76d35e3f9574983682c266de6dce55f7 (diff)
downloadninja-4436c04c81e0f372b7e03416a2515630de8c72c6.tar.gz
Merge branch 'refs/heads/TimelineUberJD' into Timeline-local-kruti
Diffstat (limited to 'js/helper-classes/3D/snap-manager.js')
-rwxr-xr-xjs/helper-classes/3D/snap-manager.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/helper-classes/3D/snap-manager.js b/js/helper-classes/3D/snap-manager.js
index d3db6567..62affc53 100755
--- a/js/helper-classes/3D/snap-manager.js
+++ b/js/helper-classes/3D/snap-manager.js
@@ -109,11 +109,11 @@ var SnapManager = exports.SnapManager = Montage.create(Component, {
109 popWorkingPlane : { value: function () { workingPlane = this._workingPlaneStack.pop(); return workingPlane; }}, 109 popWorkingPlane : { value: function () { workingPlane = this._workingPlaneStack.pop(); return workingPlane; }},
110 110
111 getStageWidth : { value: function () { 111 getStageWidth : { value: function () {
112 return parseInt(this.currentStage.offsetWidth); 112 return this.currentStage.elementModel.getProperty("offsetWidth") || parseInt(this.currentStage.offsetWidth);
113 }}, 113 }},
114 114
115 getStageHeight : { value: function () { 115 getStageHeight : { value: function () {
116 return parseInt(this.currentStage.offsetHeight); 116 return this.currentStage.elementModel.getProperty("offsetHeight") || parseInt(this.currentStage.offsetHeight);
117 }}, 117 }},
118 118
119 getStage : { value: function() { return this.currentStage; }}, 119 getStage : { value: function() { return this.currentStage; }},