-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Sidenav: mat-sidenav-content margins not updated when dir changed #9158
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Dec 29, 2017
Fixes the `mat-drawer-container` margins not being updated when its directionality has changed. Fixes angular#9158.
jelbourn
pushed a commit
that referenced
this issue
Jan 4, 2018
Fixes the `mat-drawer-container` margins not being updated when its directionality has changed. Fixes #9158.
jelbourn
pushed a commit
to jelbourn/components
that referenced
this issue
Jan 8, 2018
…9161) Fixes the `mat-drawer-container` margins not being updated when its directionality has changed. Fixes angular#9158.
jelbourn
pushed a commit
to jelbourn/components
that referenced
this issue
Jan 9, 2018
…9161) Fixes the `mat-drawer-container` margins not being updated when its directionality has changed. Fixes angular#9158.
jelbourn
pushed a commit
that referenced
this issue
Jan 9, 2018
Fixes the `mat-drawer-container` margins not being updated when its directionality has changed. Fixes #9158.
tinayuangao
pushed a commit
that referenced
this issue
Jan 10, 2018
Fixes the `mat-drawer-container` margins not being updated when its directionality has changed. Fixes #9158.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Bug, feature request, or proposal:
Bug: mat-sidenav-content margins are not updated when text direction changes
What is the expected behavior?
When you switch to RTL or back to LTR the margins of mat-sidenav-content should be recalculates.
What is the current behavior?
When you change the text direction to RTL mat-sidenav-content keeps the LTR margins
What are the steps to reproduce?
https://stackblitz.com/edit/angular-ysmyrn
What is the use-case or motivation for changing an existing behavior?
Switching from LTR / RTL shouldn't require a reload of the page.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 5.0.0
Angular Material: 5.0.2
Is there anything else we should know?
Looking at this line https://github.com/angular/material2/blob/c3d7cd96de6f06e1530658e41d1e8aa3ba74805e/src/lib/sidenav/drawer.ts#L493 maybe we should also call _updateContentMargins ?
The text was updated successfully, but these errors were encountered: