summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/thread.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/js/thread.js')
-rw-r--r--addons/mail/static/src/js/thread.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/thread.js b/addons/mail/static/src/js/thread.js
index 99b4d6ba1c2..439b1a8beb3 100644
--- a/addons/mail/static/src/js/thread.js
+++ b/addons/mail/static/src/js/thread.js
@@ -165,6 +165,9 @@ var Thread = Widget.extend({
get_scrolltop: function () {
return this.$el.scrollTop();
},
+ is_at_bottom: function () {
+ return this.el.scrollHeight - this.$el.scrollTop() - this.$el.outerHeight() < 5;
+ },
});
Thread.ORDER = ORDER;