As a user, I would like elements that have a height > the viewport to be handled more elgantly
ddelponte opened this issue · 2 comments
First of all, great plugin!
This is an enhancement request.
Currently, if stickyfloat is applied to an element that has a height > than the viewport size (ie. the stickfloat element extends from the top of the screen down past the bottom) the element loses its stickiness.
To reproduce this, please do the following:
- Go to your demo page, http://dropthebit.com/demos/stickyfloat/stickyfloat.html, and resize the height of the browser window so that it is < the height of the menu 2 element
- Verify that the element is no longer sticky, it will scroll off the page
In a scenario like the one I described above, I would I think it would be great if:
- The element stayed stuck to the top of the page until the user scrolled to the bottom of the page
- Once the user has scrolled to the bottom of the page, the sticky element would stick to the bottom of it's parent container
Thanks!
Dean
Thanks man.
Well, I've designed it to be this way in 2009 and I still think it's the best way to handled cases like these. you don't want the element to bounce back to the top, you still want to see it, and the user can access all the parts of the floated element by doing a normal scroll.
If you want to functionality, it's pretty easy to change it in the code, but i find it to be very strange for the user when one moment he sees the element, and when he resizes his viewport, puffff the element has suddenly gone.
Thanks for the quick reply!