diff options
author | John Mayhew | 2012-04-02 16:28:39 -0700 |
---|---|---|
committer | John Mayhew | 2012-04-02 16:28:39 -0700 |
commit | b4155fb4c33675a8a7cd37473513718043fdf0ba (patch) | |
tree | 3d8c802473f2395d53d599ec9d8b70b60a4db50c /js/panels/properties.reel/sections/position-and-size.reel/position-and-size.js | |
parent | 5ba9aeac94c86049423fd5d4b37b277263939c13 (diff) | |
parent | c6de22bf42be90b403491b5f87b1818d9020310c (diff) | |
download | ninja-b4155fb4c33675a8a7cd37473513718043fdf0ba.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into WorkingBranch
Conflicts:
js/helper-classes/RDGE/rdge-compiled.js
js/helper-classes/RDGE/runtime/GLRuntime.js
js/helper-classes/RDGE/src/core/script/MeshManager.js
js/helper-classes/RDGE/src/core/script/engine.js
js/helper-classes/RDGE/src/core/script/fx/ssao.js
js/helper-classes/RDGE/src/core/script/init_state.js
js/helper-classes/RDGE/src/core/script/run_state.js
js/helper-classes/RDGE/src/core/script/scenegraphNodes.js
js/helper-classes/RDGE/src/core/script/utilities.js
js/helper-classes/RDGE/src/tools/compile-rdge-core.bat
js/helper-classes/RDGE/src/tools/compile-rdge-core.sh
js/helper-classes/RDGE/src/tools/rdge-compiled.js
js/lib/drawing/world.js
js/lib/rdge/materials/bump-metal-material.js
js/lib/rdge/materials/deform-material.js
js/lib/rdge/materials/flat-material.js
js/lib/rdge/materials/fly-material.js
js/lib/rdge/materials/julia-material.js
js/lib/rdge/materials/keleidoscope-material.js
js/lib/rdge/materials/linear-gradient-material.js
js/lib/rdge/materials/mandel-material.js
js/lib/rdge/materials/plasma-material.js
js/lib/rdge/materials/pulse-material.js
js/lib/rdge/materials/radial-blur-material.js
js/lib/rdge/materials/radial-gradient-material.js
js/lib/rdge/materials/relief-tunnel-material.js
js/lib/rdge/materials/square-tunnel-material.js
js/lib/rdge/materials/star-material.js
js/lib/rdge/materials/taper-material.js
js/lib/rdge/materials/tunnel-material.js
js/lib/rdge/materials/twist-material.js
js/lib/rdge/materials/twist-vert-material.js
js/lib/rdge/materials/uber-material.js
js/lib/rdge/materials/water-material.js
js/lib/rdge/materials/z-invert-material.js
js/preloader/Preloader.js
Diffstat (limited to 'js/panels/properties.reel/sections/position-and-size.reel/position-and-size.js')
-rwxr-xr-x | js/panels/properties.reel/sections/position-and-size.reel/position-and-size.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/panels/properties.reel/sections/position-and-size.reel/position-and-size.js b/js/panels/properties.reel/sections/position-and-size.reel/position-and-size.js index 49117090..1e47916f 100755 --- a/js/panels/properties.reel/sections/position-and-size.reel/position-and-size.js +++ b/js/panels/properties.reel/sections/position-and-size.reel/position-and-size.js | |||
@@ -100,7 +100,7 @@ exports.PosSize = Montage.create(Component, { | |||
100 | */ | 100 | */ |
101 | handleRatioAction: { | 101 | handleRatioAction: { |
102 | value: function() { | 102 | value: function() { |
103 | if(this.bindButton.value) { | 103 | if(this.bindButton.pressed) { |
104 | this.aspectRatioWidth = this.heightControl.value / this.widthControl.value; | 104 | this.aspectRatioWidth = this.heightControl.value / this.widthControl.value; |
105 | if(isNaN(this.aspectRatioWidth) || !isFinite(this.aspectRatioWidth) || this.aspectRatioWidth === 0) this.aspectRatioWidth = 1; | 105 | if(isNaN(this.aspectRatioWidth) || !isFinite(this.aspectRatioWidth) || this.aspectRatioWidth === 0) this.aspectRatioWidth = 1; |
106 | 106 | ||
@@ -148,7 +148,7 @@ exports.PosSize = Montage.create(Component, { | |||
148 | 148 | ||
149 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.documentRoot]; | 149 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.documentRoot]; |
150 | 150 | ||
151 | if(this.bindButton.value) { | 151 | if(this.bindButton.pressed) { |
152 | 152 | ||
153 | var newWidth = Math.round(this.aspectRatioHeight * this.heightControl.value); | 153 | var newWidth = Math.round(this.aspectRatioHeight * this.heightControl.value); |
154 | 154 | ||
@@ -173,7 +173,7 @@ exports.PosSize = Montage.create(Component, { | |||
173 | 173 | ||
174 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.documentRoot]; | 174 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.documentRoot]; |
175 | 175 | ||
176 | if(this.bindButton.value) { | 176 | if(this.bindButton.pressed) { |
177 | 177 | ||
178 | var newHeight = Math.round(this.aspectRatioWidth * this.widthControl.value); | 178 | var newHeight = Math.round(this.aspectRatioWidth * this.widthControl.value); |
179 | 179 | ||
@@ -221,7 +221,7 @@ exports.PosSize = Montage.create(Component, { | |||
221 | 221 | ||
222 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.documentRoot]; | 222 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.documentRoot]; |
223 | 223 | ||
224 | if(this.bindButton.value) { | 224 | if(this.bindButton.pressed) { |
225 | 225 | ||
226 | var newWidth = Math.round(this.aspectRatioHeight * this.heightControl.value); | 226 | var newWidth = Math.round(this.aspectRatioHeight * this.heightControl.value); |
227 | 227 | ||
@@ -246,7 +246,7 @@ exports.PosSize = Montage.create(Component, { | |||
246 | 246 | ||
247 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.documentRoot]; | 247 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.documentRoot]; |
248 | 248 | ||
249 | if(this.bindButton.value) { | 249 | if(this.bindButton.pressed) { |
250 | var newHeight = Math.round(this.aspectRatioWidth * this.widthControl.value); | 250 | var newHeight = Math.round(this.aspectRatioWidth * this.widthControl.value); |
251 | 251 | ||
252 | if(!isFinite(newHeight)) newHeight = this.widthControl.value; | 252 | if(!isFinite(newHeight)) newHeight = this.widthControl.value; |