Comment use of .outerHeight(true)

(imported from commit 1b0f8da2c76dc5bc7504b4d4aa026351d1ab6627)
This commit is contained in:
Keegan McAllister 2012-11-01 14:03:48 -04:00
parent ca25c4d4a5
commit f9b346666a
1 changed files with 2 additions and 0 deletions

View File

@ -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));
}