Skip to content

Commit d81d23f

Browse files
authored
Update solution.md
1 parent c696bdd commit d81d23f

File tree

1 file changed

+2
-2
lines changed
  • 2-ui/1-document/09-size-and-scroll/1-get-scroll-height-bottom

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
The solution is:
1+
Рішення:
22

33
```js
44
let scrollBottom = elem.scrollHeight - elem.scrollTop - elem.clientHeight;
55
```
66

7-
In other words: (full height) minus (scrolled out top part) minus (visible part) -- that's exactly the scrolled out bottom part.
7+
Іншими словами: (вся висота) мінус (прокручена верхня частина) мінус (видима частина) -- саме це прокручена нижня частина.

0 commit comments

Comments
 (0)