Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(sidenav): update position of sidenav and backdrop if scrolled. #8184

Closed

Conversation

devversion
Copy link
Member

Currently the sidenav is not animating when the parent is scrolled, this
was caused by the absolute position.

This commit, updates the position of the sidenav and backdrop when the
parent is scrolled.

It sets the position to the current scroll position and sets the height to
the parents clientHeight. Using a 100% height, will impact the
performance heavily.

Fixes #5850.

Currently the sidenav is not animating when the parent is scrolled, this
was caused by the absolute position.

This commit, updates the position of the sidenav and backdrop when the
parent is scrolled.

It sets the position to the current scroll position and sets the height to
the parents `clientHeight`. Using a `100%` height, will impact the
performance heavily.

Fixes angular#5850.
@devversion devversion added the needs: review This PR is waiting on review from the team label Apr 23, 2016
@devversion devversion deleted the fix/sidenav-scrolled-parent branch June 3, 2016 17:08
@stephengardner
Copy link

stephengardner commented Aug 16, 2016

This is merged in 1.1.0-rc.5? I'm still having the issue, scrolling the backdrop, clicking the menu button and the page scrolls to the top. Just updated to 1.1.0-rc.5..

edit - checking code looks like it's merged. not helping my case. anyone else having this issue still?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants