Issue #338 : disable sizeInput sync if maintainration is off in usersettings

This commit is contained in:
jdescottes 2015-12-02 00:44:13 +01:00
parent 6583d8f8b9
commit c70e339296

View File

@ -35,7 +35,9 @@
if (settings.maintainRatio) { if (settings.maintainRatio) {
this.maintainRatioCheckbox.checked = true; 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_); this.addEventListener(this.resizeForm, 'submit', this.onResizeFormSubmit_);