angular / angular/components

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

Offen
#26,641 0 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area: cdk/scrolling docs P3
Vorherrschende Sprache
TypeScript
Sterne
25k
Forks
6.8k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
91

Beschreibung

### 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginnen Sie mit der betroffenen Dokumentationsseite zur CDK Overlay API unter https://material.angular.io/cdk/overlay/api und prüfen Sie das in Issue #6157 beschriebene Verhalten. Dokumentieren Sie die Anforderungen für cdk-scrollable und die Einschränkungen der block strategy bei Nicht-Fenster-Scrolling, damit Benutzer verstehen können, wie die einzelnen Scroll-Strategien funktionieren.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.