блочно > ScrollbarPair > setY
Установите дескриптор вертикальной полосы прокрутки в определенную позицию в пикселях CSS относительно ее родителей.
Подпись:
setY(y: number): void;
Параметры
Параметр | Тип | Описание |
---|
й | число | Значение вертикальной прокрутки. |
Возврат:
пустота
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-04 UTC.
[null,null,["Последнее обновление: 2025-01-04 UTC."],[[["The `ScrollbarPair.setY()` method positions the vertical scrollbar's handle at a specified vertical position (in CSS pixels) within its parent element."],["This method accepts a single parameter, `y`, which is a number representing the desired vertical scroll value."],["Calling `ScrollbarPair.setY()` does not return any value (void)."]]],["The `setY()` method, part of the `ScrollbarPair` class, adjusts the vertical scrollbar's handle position. It accepts one parameter, `y`, a number representing the desired vertical scroll value in CSS pixels. Executing this method repositions the scrollbar's handle relative to its parent element. The method does not return a value.\n"]]