Skip to content

Commit

Permalink
Reuse a variable
Browse files Browse the repository at this point in the history
FREEBIE
  • Loading branch information
liliakai authored and scottnonnenberg committed May 23, 2017
1 parent 176339f commit 72019eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/views/message_list_view.js
Expand Up @@ -34,7 +34,7 @@
if (this.shouldStickToBottom) {
this.bottomOffset = 0;
} else {
this.bottomOffset = this.scrollHeight - this.$el.scrollTop() - this.$el.outerHeight();
this.bottomOffset = this.scrollHeight - this.$el.scrollTop() - this.outerHeight;
}
},
resetScrollPosition: function() {
Expand Down

0 comments on commit 72019eb

Please sign in to comment.