Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.
/ scenic Public archive

Commit

Permalink
Apply 'scroll to bottom' to notice function.
Browse files Browse the repository at this point in the history
Bottom scrolling should be applied to notice function but
I missed it.
  • Loading branch information
HyeonJe Jun committed Nov 18, 2012
1 parent ae01c7b commit 1b80b4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/js/views/chat-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ var ChatView = Backbone.View.extend({
if(!this.object) return;

$('.chat-log', this.object).append(ich.notice_template({msg: msg}));

// scroll to bottom
$('.scroll-box', this.object).scrollTop($('.chat-log', this.object).height());
$('.scroll-box', this.object).perfectScrollbar('update');
},
onChatInput: function(handler) {
var _this = this;
Expand Down

0 comments on commit 1b80b4b

Please sign in to comment.