diff options
author | Ananya Sen | 2012-07-23 17:01:14 -0700 |
---|---|---|
committer | Ananya Sen | 2012-07-23 17:01:14 -0700 |
commit | 48d9ed19573a07c68da305d14ca6ab3a04d31d64 (patch) | |
tree | b4bf6c48c7fdade2cf531d84cac3359489d38405 /js/helper-classes/3D/snap-manager.js | |
parent | c07a7a9d11bc8299fa9686544b18840cc8e640c2 (diff) | |
parent | afc7ad4f240fdf7890a79c2d4d7f8eb2e7c30a34 (diff) | |
download | ninja-48d9ed19573a07c68da305d14ca6ab3a04d31d64.tar.gz |
Merge branch 'refs/heads/Jose-Document' into Document
Diffstat (limited to 'js/helper-classes/3D/snap-manager.js')
-rwxr-xr-x | js/helper-classes/3D/snap-manager.js | 4 |
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; }}, |