docs-bug(CdkOverlay): Overlay scroll strategies do not work unless main body is the scroll
- Ngôn ngữ chính
- TypeScript
- Star
- 25k
- Fork
- 6.8k
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 91
Mô tả
### Documentation Feedback
The documentation for CdkOverlay doesn't mention the ScrollStrategies only work if the `window` object is the one scrolling. As explained in this bug report: #6157 in order to make it work for other scrollable elements, one needs to use the `cdk-scrollable` attribute, but this is not mentioned in the documentation.
Could you add an explanation of it there?
Also, I notice even setting `cdk-scrollable` doesn't make the `block` strategy work with non-window scrolls. So I think even more documentation is missing about how to make all this work.
### Affected documentation page
https://material.angular.io/cdk/overlay/api
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với trang tài liệu API CDK Overlay bị ảnh hưởng tại https://material.angular.io/cdk/overlay/api và xem xét hành vi được mô tả trong issue #6157. Ghi lại các yêu cầu đối với cdk-scrollable và những hạn chế của block strategy khi cuộn không phải trên cửa sổ, để người dùng có thể hiểu cách từng chiến lược cuộn hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript
- Lĩnh vực
- documentation
- Loại issue
- Tài liệu
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 38/100