]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1389111 - Address complaints with autosized comments
authorWilliam Lachance <wrlach@gmail.com>
Sat, 19 Aug 2017 18:57:07 +0000 (14:57 -0400)
committerDylan William Hardison <dylan@hardison.net>
Sat, 19 Aug 2017 18:57:07 +0000 (14:57 -0400)
extensions/BugModal/web/bug_modal.css
extensions/BugModal/web/bug_modal.js

index 36e556efedfa81fda93a486ba93b458d4773e4d8..e148c205b78b4723370ce83de92d8197f8d82dcd 100644 (file)
@@ -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 {
index 5ca0148e7564eb643a0c164dbc55004cad520322..ab479d07e2dd842f889ae49eb4b8a28003c3564c 100644 (file)
@@ -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