Merge pull request #285 from ponyborn/patch-1

Width/height typo.
This commit is contained in:
Ilya Kantor 2017-11-01 08:57:18 +03:00 committed by GitHub
commit adbdd71b12
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.