enhancement : use size-input instead of select for export

This commit is contained in:
juliandescottes 2015-04-24 14:57:01 +02:00
parent daceb326c5
commit 6df145455e
3 changed files with 6 additions and 6 deletions

View File

@ -30,12 +30,14 @@
this.uploadStatusContainerEl = document.querySelector('.gif-upload-status');
this.previewContainerEl = document.querySelector('.gif-export-preview');
this.widthInput= document.querySelector('.export-gif-resize-width');
this.heightInput= document.querySelector('.export-gif-resize-height');
this.widthInput = document.querySelector('.export-gif-resize-width');
this.heightInput = document.querySelector('.export-gif-resize-height');
this.uploadButton = document.querySelector('.gif-upload-button');
this.downloadButton = document.querySelector('.gif-download-button');
this.sizeInputWidget = new pskl.widgets.SizeInput(this.widthInput, this.heightInput, this.piskelController.getWidth(), this.piskelController.getHeight());
this.sizeInputWidget = new pskl.widgets.SizeInput(
this.widthInput, this.heightInput,
this.piskelController.getWidth(), this.piskelController.getHeight());
this.addEventListener(this.uploadButton, 'click', this.onUploadButtonClick_);
this.addEventListener(this.downloadButton, 'click', this.onDownloadButtonClick_);

View File

@ -30,7 +30,6 @@
this.addEventListener(this.resizeContentCheckbox, 'change', this.onResizeContentChange_);
this.addEventListener(this.maintainRatioCheckbox, 'change', this.onMaintainRatioChange_);
this.defaultSizeController.init();
};

View File

@ -57,5 +57,4 @@
this.widthInput.value = Math.round(value * this.initWidth / this.initHeight);
}
};
})();
})();