Dir 'rtl' not working in vertical orientation
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
### 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100