-
Notifications
You must be signed in to change notification settings - Fork 6.8k
bug(mat-dialog): element with fixed position jumps when dialog opens. #23851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@crisbeto I can see this jumping, and can see that's it's definitely related to the animation (NoopAnimationsModule fixes it). I'm not sure, though, what would be animating here that would affect a |
It's because the dialog transitions from |
Any suggestions for a workaround? |
You can avoid the jump by setting a The other option would be to disable animations for the entire module using the |
Thanks for the fast reply! Sadly, that #13466 would be the only one that's useful. I will probably go with the fade animation on the fixed elements. Edit: tried to force Edit2: added a |
I had the similar problem, the difference is I had a sticky elements that always jumpy when MatDialog is opened. overriding the |
Reproduction
Use StackBlitz to reproduce your issue:
Steps to reproduce:
Expected Behavior
Element is positioned correctly when dialog opens.
Actual Behavior
Element jumps from one position to correct one.

Environment
The text was updated successfully, but these errors were encountered: