summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Lachance <wrlach@gmail.com>2017-08-19 20:57:07 +0200
committerDylan William Hardison <dylan@hardison.net>2017-08-19 20:57:07 +0200
commitcd061f563f3f5132ae99c8896d2515c3b594a432 (patch)
tree43108b8a1d7cf41500490c6ce8dc4c84d6561e67
parentd5df3c5f1d75eb7c37e74bcf76a507a9e34a1cce (diff)
downloadbugzilla-cd061f563f3f5132ae99c8896d2515c3b594a432.tar.gz
bugzilla-cd061f563f3f5132ae99c8896d2515c3b594a432.tar.xz
Bug 1389111 - Address complaints with autosized comments
-rw-r--r--extensions/BugModal/web/bug_modal.css4
-rw-r--r--extensions/BugModal/web/bug_modal.js1
2 files changed, 4 insertions, 1 deletions
diff --git a/extensions/BugModal/web/bug_modal.css b/extensions/BugModal/web/bug_modal.css
index 36e556efe..e148c205b 100644
--- a/extensions/BugModal/web/bug_modal.css
+++ b/extensions/BugModal/web/bug_modal.css
@@ -714,8 +714,10 @@ body.platform-Win32 .comment-text, body.platform-Win64 .comment-text {
box-sizing: border-box !important;
margin: 0 0 1em;
max-width: 1024px;
+}
+
+.autosized-comment {
max-height: 400px;
- resize: vertical;
}
#comment-preview {
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index 5ca0148e7..ab479d07e 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -876,6 +876,7 @@ $(function() {
});
if (BUGZILLA.user.settings.autosize_comments) {
+ $('#comment').addClass('autosized-comment');
autosize($('#comment'));
} else if (BUGZILLA.user.settings.zoom_textareas) {
// add comment --> enlarge on focus