diff --git a/sites/all/modules/ajax_comments/ajax_comments.js b/sites/all/modules/ajax_comments/ajax_comments.js
index 97a4f4f..d0a39de 100644
--- a/sites/all/modules/ajax_comments/ajax_comments.js
+++ b/sites/all/modules/ajax_comments/ajax_comments.js
@@ -58,7 +58,7 @@ Drupal.behaviors.ajaxComments = {
  */
 function ajaxCommentsScrollForm(commentNumber) {
   pos = $('#comment-wrapper-' + commentNumber).offset();
-  height = $('#comment-wrapper-' + commentNumber + ' .comment').attr("scrollHeight");
+  height = $('#comment-wrapper-' + commentNumber + ' .comment').prop("scrollHeight") - 100;
 
   // Scroll to comment reply form.
   $('html, body').animate({ scrollTop: pos.top + height}, 'fast');
@@ -68,7 +68,7 @@ function ajaxCommentsScrollForm(commentNumber) {
  * Scrolls user to comment that has been added to page.
  */
 function ajaxCommentsScrollReply(commentNumber) {
-  formSize = $('.comment-form').attr("scrollHeight");
+  formSize = $('.comment-form').prop("scrollHeight") - 100;
   pos = $('#comment-wrapper-' + commentNumber).offset();
 
   // Scroll to comment reply.
