From 932f2e526c43fbca681dcba3923e77bccf2e9393 Mon Sep 17 00:00:00 2001
From: danielgrippi <danielgrippi@gmail.com>
Date: Mon, 27 Feb 2012 15:30:44 -0800
Subject: [PATCH] fix bug with interaction pane scrolling

---
 .../javascripts/app/views/post-viewer/new_comment.js   | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/public/javascripts/app/views/post-viewer/new_comment.js b/public/javascripts/app/views/post-viewer/new_comment.js
index eab44360e4..c42de35c90 100644
--- a/public/javascripts/app/views/post-viewer/new_comment.js
+++ b/public/javascripts/app/views/post-viewer/new_comment.js
@@ -30,12 +30,8 @@ app.views.PostViewerNewComment = app.views.Base.extend({
     this.model.trigger("interacted")
     this.toggleFormState()
     this.$("textarea").val("")
-    this.$("textarea").css('height', '18px')
-
-    /* scroll to bottom without animation */
-    $(this.scrollableArea).scrollTop($(this.scrollableArea).prop("scrollHeight"))
-
-    this.$("textarea").focus()
+      .css('height', '18px')
+      .focus()
   },
 
   toggleFormState : function() {
@@ -43,7 +39,7 @@ app.views.PostViewerNewComment = app.views.Base.extend({
   },
 
   scrollToBottom : function() {
-    $(this.scrollableArea).animate({ scrollTop: $(this.scrollableArea).prop("scrollHeight") }, 1000);
+    $(this.scrollableArea).scrollTop($(this.scrollableArea).prop("scrollHeight"))
   }
 
 })
-- 
GitLab