mirror of https://github.com/zulip/zulip.git
Comment use of .outerHeight(true)
(imported from commit 1b0f8da2c76dc5bc7504b4d4aa026351d1ab6627)
This commit is contained in:
parent
ca25c4d4a5
commit
f9b346666a
|
@ -41,6 +41,7 @@ function above_view_threshold(message, useTop) {
|
|||
// (if useTop = true, we look at the top of the pointer instead)
|
||||
var position = message.offset().top;
|
||||
if (!useTop) {
|
||||
// outerHeight(true): Include margin
|
||||
position += message.outerHeight(true);
|
||||
}
|
||||
return position < viewport.scrollTop() + viewport.height() / 5;
|
||||
|
@ -644,6 +645,7 @@ function at_top_of_viewport() {
|
|||
}
|
||||
|
||||
function at_bottom_of_viewport() {
|
||||
// outerHeight(true): Include margin
|
||||
return (viewport.scrollTop() + viewport.height() >= $("#main_div").outerHeight(true));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue