Skip to content

Commit 5d62544

Browse files
authored
Update 2-ui/1-document/10-size-and-scroll-window/article.md
1 parent 0af28f5 commit 5d62544

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ this.scrollIntoView({
176176
});
177177
```
178178
179+
- `behavior` -- анимация прокрутки (`smooth`, `instant`, `auto`)
180+
- `block` -- вертикальное выравнивание (`start`, `center`, `end`, `nearest`). Значение по умолчанию: `start`
181+
- `inline` -- горизонтальное выравнивание (`start`, `center`, `end`, `nearest`). Значение по умолчанию: `nearest`
179182
## Запретить прокрутку
180183
181184
Иногда нам нужно сделать документ "непрокручиваемым". Например, при показе большого диалогового окна над документом – чтобы посетитель мог прокручивать это окно, но не документ.

0 commit comments

Comments
 (0)