Thats probably better but there are still edge cases...
This commit is contained in:
parent
0eb0256502
commit
364972a292
@ -650,7 +650,7 @@ function collapseHeight() {
|
||||
//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
|
||||
if($(window).scrollTop() > $(this).offset().top) {
|
||||
if(($(this).offset().top + orgHeight - $(window).scrollTop()) < 50) {
|
||||
diff = orgHeight - divmore_height;
|
||||
cDiff = cDiff + diff;
|
||||
i++;
|
||||
@ -753,7 +753,7 @@ function liveUpdate() {
|
||||
$("#page-spinner").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;
|
||||
|
||||
|
Reference in New Issue
Block a user