aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/3D/snap-manager.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-07-19 11:56:08 -0700
committerValerio Virgillito2012-07-19 11:56:08 -0700
commitc97f806fceb2a2e3c668b965e4f8e6fc047a3d9a (patch)
tree8e8d87b31fffb7163aff0634ba4128f08be66343 /js/helper-classes/3D/snap-manager.js
parent6a49b632e0d7113ca7a6709e0a58097771512f20 (diff)
parentfc13ef1e806116bb7ece5bb06604fa4f5714a6ed (diff)
downloadninja-c97f806fceb2a2e3c668b965e4f8e6fc047a3d9a.tar.gz
Merge branch 'StageDrawingFixes' of https://github.com/mqg734/ninja into v0.7.1
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; }},