From c70e339296b4ee457838e9528d5842cbcde8ce08 Mon Sep 17 00:00:00 2001 From: jdescottes Date: Wed, 2 Dec 2015 00:44:13 +0100 Subject: [PATCH] Issue #338 : disable sizeInput sync if maintainration is off in usersettings --- src/js/controller/settings/resize/ResizeController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/controller/settings/resize/ResizeController.js b/src/js/controller/settings/resize/ResizeController.js index 8d7a8819..d054fcb3 100644 --- a/src/js/controller/settings/resize/ResizeController.js +++ b/src/js/controller/settings/resize/ResizeController.js @@ -35,7 +35,9 @@ if (settings.maintainRatio) { this.maintainRatioCheckbox.checked = true; - this.sizeInputWidget.enableSync(); + } else { + // the SizeInput widget is enabled by default + this.sizeInputWidget.disableSync(); } this.addEventListener(this.resizeForm, 'submit', this.onResizeFormSubmit_);