Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Set width of sticky element if position: fixed #80

Closed
BMCwebdev opened this issue Jul 26, 2017 · 4 comments
Closed

Set width of sticky element if position: fixed #80

BMCwebdev opened this issue Jul 26, 2017 · 4 comments
Labels

Comments

@BMCwebdev
Copy link

Am I correct in understanding that in IE, as css sticky is not supported, this will add a position:fixed? I ask because I am dealing with a div inside a flexbox item. If I position fixed it, it looses it's parents width and no longer behaves as if it is contained in the parent. Thank you (sorry, not sure how to add the "question" label.)

@yowainwright
Copy link
Contributor

I'm going to write an update for this particular feature as it has been requested a lot. I will try to have is ASAP.

@yowainwright yowainwright changed the title Question regarding IE Set width of sticky element if position: fixed Jul 27, 2017
@yowainwright
Copy link
Contributor

@BMCwebdev here's another issue referencing this same general thing. There are a lot of different ways to fix the valid problem you noted.

Stickybits won't support adding width for sticky elements b/c there are many scenarios where that wouldn't be the desired option (think of a sticky element that doesn't extend the full width of the parent). Let me know if I can help come up with the right solution.

Thanks for reaching out! 🙏

@yowainwright
Copy link
Contributor

Duplicate of #66

@yowainwright yowainwright marked this as a duplicate of #66 Jul 28, 2017
@kvanbere
Copy link

+1 this, behaviour is inconsistent under IE otherwise

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants