angular / angular/components

bug(mat-dialog): element with fixed position jumps when dialog opens.

Offen
#23,851 7 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
area: cdk/overlay P4
Vorherrschende Sprache
TypeScript
Sterne
25k
Forks
6.8k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
91

Beschreibung

#### Reproduction

Use StackBlitz to reproduce your issue:
- Components: https://stackblitz.com/edit/angular-eyckbt?file=src/app/dialog-overview-example-dialog.html

Steps to reproduce:
1. Just open dialog which contains element with fixed position inside it.


#### Expected Behavior
Element is positioned correctly when dialog opens.

#### Actual Behavior
Element jumps from one position to correct one.
![fixed_element_jump_in_dialog](https://user-images.githubusercontent.com/32300784/139259476-f0b4f31d-9037-42eb-a975-564b4c4cf41f.gif)

#### Environment

- Angular: in stackblitz link
- CDK/Material: in stackblitz link
- Browser(s): Chrome v94
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10 latest

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with the linked StackBlitz reproduction and inspect src/app/dialog-overview-example-dialog.html, then reproduce the jump in Chrome v94 when opening the dialog. Trace the dialog's positioning behavior for the fixed-position element; done means the element is correctly positioned immediately when the dialog opens without regressing other dialog behavior.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

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

Neue Issues direkt in Ihr Postfach

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