angular / angular/components

Dir 'rtl' not working in vertical orientation

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

Beschreibung

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

I'm using `cdk-virtual-scroll-viewport` and I'm changing dynamically by binding its `dir` property from `ltr` to `rtl`, to obtain a bottom to top scoller. I can see the change in the html, but visually it has no effect.

### Reproduction

Steps to reproduce:
1. cdk-virtual-scroll-viewport with vertical orientation and rtl dir
2.

### Expected Behavior

Vertical scroller, oriented from bottom to top

### Actual Behavior

Vertical scroller, oriented from top to bottom, no change vs. vertical orientation and ltr dir.

### Environment

- Angular: 12.0.4
- CDK/Material: 12.0.4
- Browser(s): Chrome Version 97.0.4692.71 (Official Build) (64-bit)
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10 64-bit

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by reproducing the issue with cdk-virtual-scroll-viewport in vertical orientation, binding its dir property from ltr to rtl. Trace how the viewport handles direction changes and verify the expected bottom-to-top visual orientation; the issue is done when the dynamic change takes effect instead of remaining top-to-bottom.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
frontend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

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