stickEmUp
stickEmUp copied to clipboard
Behavior after resizing window (new calculation position)
Hi, I try to implement the correct behavior, after the window was resized; have this code, but it doesn't work all the time:
<script>
var stickEm;
function setStickEmUp() {
stickEm = $('.ModulesNavigation');
stickEm.stickEmUp({
stickOffset: 70
});
}
$(function() {
setStickEmUp();
window.addEventListener('resize', function () {
stickEm = null;
setStickEmUp();
});
}); /* onReady */
</script>
If you have a hint, that would be great.