From b545a5e7f4162c0384de99c2157d43684c6acfa2 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 17 Jul 2017 19:00:12 -0500 Subject: [PATCH] Fix related tags overflow in detachable tag edit dialog (fix #3219). Bug: resizing the tag edit dialog then expanding the related tags section doesn't resize the dialog to fit the expanded related tags section. Instead a scrollbar appears. Fixes this by expanding the dialog's height when the related tags are shown. --- app/assets/javascripts/related_tag.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/related_tag.js b/app/assets/javascripts/related_tag.js index 06682b795..177e09cee 100644 --- a/app/assets/javascripts/related_tag.js +++ b/app/assets/javascripts/related_tag.js @@ -287,6 +287,7 @@ Danbooru.RelatedTag.show = function() { $("#related-tags").show() $("#toggle-related-tags-link").text("«"); + $("#edit-dialog").height("auto"); } Danbooru.RelatedTag.hide = function() {