Merge pull request #6204 from kevinkucharczyk/unable-to-remove-small-background-image

Fix hidden delete button in image uploader for short images
This commit is contained in:
Kevin Ansfield 2015-12-15 13:54:32 +00:00
commit 53cdb4398b

View File

@ -33,7 +33,6 @@ let UploadUi = function ($dropzone, settings) {
let animateDropzone = ($img) => {
$dropzone.animate({opacity: 0}, 250, () => {
$dropzone.removeClass('image-uploader').addClass('pre-image-uploader');
$dropzone.css({minHeight: 0});
this.removeExtras();
$dropzone.animate({height: $img.height()}, 250, () => {
showImage($img.width(), $img.height());