stickEmUp icon indicating copy to clipboard operation
stickEmUp copied to clipboard

Behavior after resizing window (new calculation position)

Open Jugibur opened this issue 8 years ago • 0 comments

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.

Jugibur avatar Oct 24 '17 08:10 Jugibur