Handling scroll position when using position: sticky
#774
Unanswered
stefanfisk
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
There is poor support for sticky positioning right now. Unpoly measures the element dimensions before it scrolls, and then scrolls once. But the scrolling motion will change the navbar position. Maybe this can be addresses by Unpoly scrolling twice. Or we drop the entire idea of measuring obstructing elements and ask the developer to use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a template with a fixed header with
up-fixed="top"`` and a menu withposition: stickyin the main content. Is it possible to make Unpoly take the sticky menu into account when scrolling elements into view? I havescroll-padding-topset correctly but this seems to be ignored. I've tried dynamically togglingup-fixed="top"` on the sticky menu based on its position but Unpoly does not seem to see this change.Beta Was this translation helpful? Give feedback.
All reactions