-
Notifications
You must be signed in to change notification settings - Fork 153
Stick To Top of Parent? #16
Comments
Please check https://github.com/marcosgallardo/jquery.sticky ... We are adding more documentation soon. |
@dendril This doesn’t seem to address the question in the issue. |
Not sure what you mean here, sticky elements are constrained to their parent containers by default. The plugin operates with that in mind. |
Sorry, let me try and be a little more specific. If I have a scrollable div in the middle of my page. If a child contained in that element could be stuck to that specific element when scrolled. It appears the current implementation only works when my element and it's parent are scrolled to the top/bottom of the window. If anyone here uses angular I just made a directive for this script |
See also #13. Unfortunately, I don’t think we’ll be supporting this use case. We tend to avoid element-overflow whenever possible for the widest support on touch screens (and easiest true-to-native scrolling). Sorry! Feel free to fork and I’d be happy to include a link in the README. |
Do you think it would be possible to stick to the top of the parent and not just to the top of the window? I'll start playing with the code, but thought I would see if anyone had tried yet.
The text was updated successfully, but these errors were encountered: