angular / angular/components

Dir 'rtl' not working in vertical orientation

Aperta
#24,244 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area: cdk/scrolling P3
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.