MessageListView.measureScrollPosition: reuse variables
This commit is contained in:
parent
c5530b7235
commit
13a91eece8
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@
|
||||||
this.outerHeight = this.$el.outerHeight();
|
this.outerHeight = this.$el.outerHeight();
|
||||||
this.scrollPosition = this.$el.scrollTop() + this.outerHeight;
|
this.scrollPosition = this.$el.scrollTop() + this.outerHeight;
|
||||||
this.scrollHeight = this.el.scrollHeight;
|
this.scrollHeight = this.el.scrollHeight;
|
||||||
this.bottomOffset = this.scrollHeight - this.$el.scrollTop() - this.outerHeight;
|
this.bottomOffset = this.scrollHeight - this.scrollPosition;
|
||||||
},
|
},
|
||||||
resetScrollPosition: function() {
|
resetScrollPosition: function() {
|
||||||
this.$el.scrollTop(this.scrollPosition - this.$el.outerHeight());
|
this.$el.scrollTop(this.scrollPosition - this.$el.outerHeight());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue