Thats probably better but there are still edge cases...

This commit is contained in:
Mario Vavti 2016-02-16 21:29:09 +01:00
parent 0eb0256502
commit 364972a292

View File

@ -650,7 +650,7 @@ function collapseHeight() {
//var trigger = $(window).scrollTop() < $(this).offset().top ? true : false; //var trigger = $(window).scrollTop() < $(this).offset().top ? true : false;
// check if we will collapse some content above the visible content and compensate the diff later // check if we will collapse some content above the visible content and compensate the diff later
if($(window).scrollTop() > $(this).offset().top) { if(($(this).offset().top + orgHeight - $(window).scrollTop()) < 50) {
diff = orgHeight - divmore_height; diff = orgHeight - divmore_height;
cDiff = cDiff + diff; cDiff = cDiff + diff;
i++; i++;
@ -753,7 +753,7 @@ function liveUpdate() {
$("#page-spinner").spin(false); $("#page-spinner").spin(false);
$("#profile-jot-text-loading").spin(false); $("#profile-jot-text-loading").spin(false);
$(window).scrollTop($(window).scrollTop() + $("#region_2").height() - orgHeight + contentHeightDiff); //$(window).scrollTop($(window).scrollTop() + $("#region_2").height() - orgHeight + contentHeightDiff);
in_progress = false; in_progress = false;