연구 설문조사: Blockly 사용 경험을 알려주세요
설문조사 시작
차단 > ScrollbarPair
한 쌍의 스크롤바에 관한 클래스입니다. 가로 모드 및 세로 모드
서명:
export declare class ScrollbarPair
생성자
속성
메서드
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-10-15(UTC)
[null,null,["최종 업데이트: 2024-10-15(UTC)"],[[["The `ScrollbarPair` class manages a pair of horizontal and vertical scrollbars for a Blockly workspace."],["It provides methods for controlling the scrollbars' visibility, position, and size in response to workspace changes and user interactions."],["`ScrollbarPair` handles resizing and repositioning of scrollbars, ensuring they remain functional and aligned within their container."],["Developers can use its methods to set scroll positions, check visibility, and manage the overall behavior of the scrollbars."]]],["The `ScrollbarPair` class manages horizontal and vertical scrollbars. It's constructed with a workspace and flags to add horizontal/vertical bars. Key actions include determining if scrolling is enabled in each direction, disposing of scrollbars, managing visibility, and resizing. Resizing involves recalculating scrollbar locations and lengths, considering both content changes (via `resizeContent`) and window layout changes (via `resizeView`). Methods allow setting scrollbar positions (`set`, `setX`, `setY`) and managing container visibility.\n"]]