Skip to content

Commit adbdd71

Browse files
authored
Merge pull request #285 from ponyborn/patch-1
Width/height typo.
2 parents 3003233 + b2605eb commit adbdd71

File tree

1 file changed

+1
-1
lines changed
  • 2-ui/1-document/10-size-and-scroll-window

1 file changed

+1
-1
lines changed

2-ui/1-document/10-size-and-scroll-window/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ let scrollHeight = Math.max(
5555
document.body.clientHeight, document.documentElement.clientHeight
5656
);
5757
58-
alert('Full document width, with scrolled out part: ' + scrollHeight);
58+
alert('Full document height, with scrolled out part: ' + scrollHeight);
5959
```
6060
6161
Why so? Better don't ask. These inconsistencies come from ancient times, not a "smart" logic.

0 commit comments

Comments
 (0)