You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would say that the total height is solely calculated from the elements, regardless of the scroll position at that moment. Or is there a specific reason to do so?
I have a case in which the total height is not calculated correctly: I am dynamically adding elements when the user scrolls to the bottom of the page. When this occurs the elements are reset and the layout method is recalled. However, the total height is wrong because of the subtraction.
The text was updated successfully, but these errors were encountered:
Hi Paul,
Why are you subtracting the pageYoffset from the total height when the layout is done positioning?
container.style.height = (totalHeight - window.pageYOffset) + "px";
I would say that the total height is solely calculated from the elements, regardless of the scroll position at that moment. Or is there a specific reason to do so?
I have a case in which the total height is not calculated correctly: I am dynamically adding elements when the user scrolls to the bottom of the page. When this occurs the elements are reset and the layout method is recalled. However, the total height is wrong because of the subtraction.
The text was updated successfully, but these errors were encountered: