You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the <StickyContainer/> has an ancestor with position: relative, the using <Sticky relative/> causes the Sticky element to jump to viewport's top when sticked.
What is the expected or desired behavior?
To stay in <StickyContainer/>.
Why do you want this? What use case do you have?
My Page has an App wrapper (not in my control), and renders my page in a container with position: relative.
What is your environment?
Version:
react-sticky
└── 6.0.3
Browser: Chrome Version 71.0.3578.9
Is there anything else I should know?
The text was updated successfully, but these errors were encountered:
hepiyellow
changed the title
BUG(?): relative mode makes <Sticky/> jump to body's top
BUG(?): Case where <StickyContainer/> is wrapper in a positioned container (position: relative)
Feb 10, 2019
vcarl
changed the title
BUG(?): Case where <StickyContainer/> is wrapper in a positioned container (position: relative)
Sticky element is mispositioned when StickyContainer is within a position: relative container
Feb 11, 2019
I'm submitting a ...
If you're reporting a bug, please provide a minimal demonstration of the problem
Bug Demo
What is the current behavior?
When the
<StickyContainer/>
has an ancestor withposition: relative
, the using<Sticky relative/>
causes the Sticky element to jump to viewport's top when sticked.What is the expected or desired behavior?
To stay in
<StickyContainer/>
.Why do you want this? What use case do you have?
My Page has an App wrapper (not in my control), and renders my page in a container with
position: relative
.What is your environment?
Is there anything else I should know?
The text was updated successfully, but these errors were encountered: