ember-cloaking icon indicating copy to clipboard operation
ember-cloaking copied to clipboard

$('body').height() is not necessarily correct

Open mlb5000 opened this issue 11 years ago • 1 comments

When calculating the viewport bounds in scrolled, $('body').height() is used to calculate bodyHeight. However, with full document scrolling (at least in Chrome and Firefox) the body height can be much smaller than the document height.

Changing $('body').height to $(document).height worked for me.

mlb5000 avatar Feb 22 '14 05:02 mlb5000

I'd happily accept a PR to make this change, assuming it works well :)

eviltrout avatar Feb 24 '14 17:02 eviltrout