Skip to content

Behavior after resizing window (new calculation position) #1

@Jugibur

Description

@Jugibur

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions