Skip to content

docs-bug(CdkOverlay): Overlay scroll strategies do not work unless main body is the scroll #26641

Open
@dwilches

Description

@dwilches

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/scrollingdocsThis issue is related to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions