#1875: Auto-resize upload preview to 100%

This commit is contained in:
Toks
2013-07-31 19:14:30 -04:00
parent cfb9c25d53
commit 0764c1a45c

View File

@@ -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) {