fix bug with interaction pane scrolling
This commit is contained in:
parent
5bebd97bca
commit
932f2e526c
1 changed files with 3 additions and 7 deletions
|
|
@ -30,12 +30,8 @@ app.views.PostViewerNewComment = app.views.Base.extend({
|
||||||
this.model.trigger("interacted")
|
this.model.trigger("interacted")
|
||||||
this.toggleFormState()
|
this.toggleFormState()
|
||||||
this.$("textarea").val("")
|
this.$("textarea").val("")
|
||||||
this.$("textarea").css('height', '18px')
|
.css('height', '18px')
|
||||||
|
.focus()
|
||||||
/* scroll to bottom without animation */
|
|
||||||
$(this.scrollableArea).scrollTop($(this.scrollableArea).prop("scrollHeight"))
|
|
||||||
|
|
||||||
this.$("textarea").focus()
|
|
||||||
},
|
},
|
||||||
|
|
||||||
toggleFormState : function() {
|
toggleFormState : function() {
|
||||||
|
|
@ -43,7 +39,7 @@ app.views.PostViewerNewComment = app.views.Base.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
scrollToBottom : function() {
|
scrollToBottom : function() {
|
||||||
$(this.scrollableArea).animate({ scrollTop: $(this.scrollableArea).prop("scrollHeight") }, 1000);
|
$(this.scrollableArea).scrollTop($(this.scrollableArea).prop("scrollHeight"))
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue