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

fix(util): body overflow-x breaking disableScrollAround #9864

Merged
merged 1 commit into from
Oct 21, 2016

Conversation

crisbeto
Copy link
Member

Currently the disableScrollAround function measures the body in order to determine whether to hide it's overflow. This measurement can get thrown off by the html node's scrollbar that gets added a few lines above. This change switches to adding the scrollbar to the html node after the body measurements are done.

Fixes #9860.

Currently the `disableScrollAround` function measures the body in order to determine whether to hide it's overflow. This measurement can get thrown off by the `html` node's scrollbar that gets added a few lines above. This change switches to adding the scrollbar to the `html` node after the body measurements are done.

Fixes angular#9860.
@crisbeto crisbeto added the needs: review This PR is waiting on review from the team label Oct 19, 2016
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. This makes sense.

@ThomasBurleson ThomasBurleson added needs: presubmit and removed needs: review This PR is waiting on review from the team labels Oct 19, 2016
@ThomasBurleson ThomasBurleson added this to the 1.1.2 milestone Oct 19, 2016
@jelbourn jelbourn merged commit 4468126 into angular:master Oct 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants