aboutsummaryrefslogtreecommitdiff
path: root/js/panels/properties/sections
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/properties/sections')
-rw-r--r--js/panels/properties/sections/position-and-size.reel/position-and-size.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/panels/properties/sections/position-and-size.reel/position-and-size.js b/js/panels/properties/sections/position-and-size.reel/position-and-size.js
index e539257d..49117090 100644
--- a/js/panels/properties/sections/position-and-size.reel/position-and-size.js
+++ b/js/panels/properties/sections/position-and-size.reel/position-and-size.js
@@ -149,6 +149,7 @@ exports.PosSize = Montage.create(Component, {
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.value) {
152
152 var newWidth = Math.round(this.aspectRatioHeight * this.heightControl.value); 153 var newWidth = Math.round(this.aspectRatioHeight * this.heightControl.value);
153 154
154 if(!isFinite(newWidth)) newWidth = this.heightControl.value; 155 if(!isFinite(newWidth)) newWidth = this.heightControl.value;
@@ -181,12 +182,10 @@ exports.PosSize = Montage.create(Component, {
181 this.heightControl.value = newHeight; 182 this.heightControl.value = newHeight;
182 this.application.ninja.elementMediator.setProperty(items, "height", [newHeight + "px"] , "Change", "pi"); 183 this.application.ninja.elementMediator.setProperty(items, "height", [newHeight + "px"] , "Change", "pi");
183 184
184 } else {
185
186 this.application.ninja.elementMediator.setProperty(items, "width", [this.widthControl.value + "px"] , "Change", "pi", prevPosition);
187 this.savedPosition = null;
188 } 185 }
189 186
187 this.application.ninja.elementMediator.setProperty(items, "width", [this.widthControl.value + "px"] , "Change", "pi", prevPosition);
188 this.savedPosition = null;
190 189
191 } 190 }
192 191