Skip to content
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

Fixed centered pin offset problem #403

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

hayeah
Copy link

@hayeah hayeah commented Sep 10, 2015

If a pin is horizontally centered and its width is fixed (or auto
width), taking it out of document flow by setting its position to fixed
would cause the pin spacer to collapse to 0.

The left offset of the pin spacer moves to the right because its width
is now zero. This causes the pin to jump to the right as well.

See a demo of this problem: http://codepen.io/hayeah/pen/GppjgN

If a pin is horizontally centered and its width is fixed (or auto
width), taking it out of document flow by setting its position to fixed
would cause the pin spacer to collapse to 0.

The left offset of the pin spacer moves to the right because its width
is now zero. This causes the pin to jump to the right as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants