Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

fix(affix): Use the document instead of the body to determine the height of the page#2238

Merged
mgcrea merged 2 commits into
mgcrea:masterfrom
CyborgMaster:affix-height-detection
Feb 5, 2019
Merged

fix(affix): Use the document instead of the body to determine the height of the page#2238
mgcrea merged 2 commits into
mgcrea:masterfrom
CyborgMaster:affix-height-detection

Conversation

@CyborgMaster

Copy link
Copy Markdown
Contributor

In my project, due to fixed height headers and sidebars, the children of the body element are all absolutely, or fixed positioned. This causes the body element to have a height of 0px, and therefore the height calcs in affix to work incorrectly. This is fixed if we use the height of the document instead of the body.

@CyborgMaster CyborgMaster changed the title Use the document instead of the body to determine the height of the page fix(affix): Use the document instead of the body to determine the height of the page May 8, 2017
@stale

stale Bot commented Jan 25, 2019

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the stale label Jan 25, 2019
@CyborgMaster

Copy link
Copy Markdown
Contributor Author

I really think this is a good improvement, I would like to get it merged. Can we take another look?

@stale stale Bot removed the stale label Jan 25, 2019
@mgcrea mgcrea merged commit 57f332f into mgcrea:master Feb 5, 2019
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.

2 participants