Width/height mistype.

This commit is contained in:
Max 2017-10-31 11:47:07 +03:00 committed by GitHub
parent ccc0e9327f
commit b2605eba41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ let scrollHeight = Math.max(
document.body.clientHeight, document.documentElement.clientHeight
);
alert('Full document width, with scrolled out part: ' + scrollHeight);
alert('Full document height, with scrolled out part: ' + scrollHeight);
```
Why so? Better don't ask. These inconsistencies come from ancient times, not a "smart" logic.