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
After much playing around in an attempt to learn and apply ScrollToFixed, I've managed to get the ScrollToFixed work correctly, except for one thing: the div 'jumps' to the bottom limit before it's supposed to.
I found it difficult getting the limit to set correctly with what should be the correct method, but I had to offset it by manually setting some pixels. Here's the code and you'll see what I mean:
After much playing around in an attempt to learn and apply ScrollToFixed, I've managed to get the ScrollToFixed work correctly, except for one thing: the div 'jumps' to the bottom limit before it's supposed to.
Accessible example: http://area51.shortstories101.com/story/look-me-in-the-eye/
I found it difficult getting the limit to set correctly with what should be the correct method, but I had to offset it by manually setting some pixels. Here's the code and you'll see what I mean:
$('.below-head-sticky').scrollToFixed({ marginTop: (75 + topbar_height), minWidth: 1000, limit: function() { return ($('#footer_owrap').offset().top - $('.below-head-sticky').outerHeight(true) - 200); } });
The "200" there is the anomaly that may be a hint with this problem because, in my opinion, it should've worked correctly without that offset.
Does anyone have any suggestions?
The text was updated successfully, but these errors were encountered: