-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Sidenav and fixed elements #3031
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
https://material.angular.io/components/component/sidenav Here, in the "Sidenav with a FAB" example, the fab scrolls with the text, instead of remaining at the fixed position. |
+1 |
Hey there Here in So far, the only workaround we have found is to overwrite the transform property to I fixed the above plunkr example to work with angular 4, and astonishingly, the issue cannot be reproduced there anymore. http://plnkr.co/edit/tWIiaz5Mmtd3g5QhCZ4d?p=preview |
This is a duplicate of #998 |
A fix for having a fixed-bottom navbar |
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. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
fixed elements to be fixed without css tricks
What is the current behavior?
To keep elements fixed (such as toolbar on the top, floating buttons on on the bottom) I need to set
height: 100%
onhtml
,body
,main
, andmd-sidenav-container
(and any other potential parents). I have to setoverflow-y: auto
on themd-sidenav-container
too.If any of those properties is omitted, then toolbar & floating buttons
fixed
property is now taken asabsolute
.What are the steps to reproduce?
Just look this sample and try to fix the toolbar ; or jsut get an empty app with a sidenav and a toolbar. Unfortunately I can't provide any plunker (proxy doesn't allow it).
What is the use-case or motivation for changing an existing behavior?
It seems to be a misfunction of the component and not the actual expected behavior. Plus, those css tricks I mentioned cause side-effets, especially on scroll event caption.
Which versions of Angular, Material, OS, browsers are affected?
All I tested. From the alpha 10 to the current version, beta 2. I should have post this earlier, but I thought someone else would have find it. My bad.
Is there anything else we should know?
If this issue is known, please ignore this, but I couldn't find any related issue.
The text was updated successfully, but these errors were encountered: