diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js index e5cda5df8..514ac268f 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -92,6 +92,10 @@ $tag_string.css({"resize": "vertical", "width": "100%"}); $tag_string.focus().selectEnd().height($tag_string[0].scrollHeight); + + var $image = $("#c-uploads .ui-wrapper #image, #c-uploads .ui-wrapper:has(#image)"); + $image.height($image.resizable("option", "maxHeight")); + $image.width($image.resizable("option", "maxWidth")); } Danbooru.Post.close_edit_dialog = function(e, ui) {