• Resolved boschiotto4

    (@boschiotto4)


    Hi! On page resize the sticky menu do not resize itself. It updates only after the scroll event.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WebFactory

    (@webfactory)

    Hi, we’ll add the resize event to the list of triggers in the next release. It really shouldn’t be a problem (fingers crossed :))

    Thread Starter boschiotto4

    (@boschiotto4)

    you’re the best! great

    Hi,

    The problem:-
    When using sticky on a mobile and the user rotates the device, the screen size changes but the sticky still uses the original screen size.

    The solution (that works for me):-
    I modified (v2.2) sticky-menu-or-anything-on-scroll/assets/js/jq-sticky-anything.js
    commenting out lines 150 – 153
    added
    widthSticky = viewport;

    And set the plugin to debug mode. ??

    I should minifiy and turn debug off, but I can wait for the official release.

    You can see it working here: 3dairspace.org.uk

    
    //          widthSticky = $('.sticky-element-original').css('width');
    //          if(widthSticky == '0px') {
    //            widthSticky = ($('.sticky-element-original')[0].getBoundingClientRect().width);
    //          }
    		  widthSticky = viewport;
    
    Plugin Author WebFactory

    (@webfactory)

    Thank you for letting us know! I’ll check a bit more if that method is good for all situations and we’ll push the change in the next release ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page resize’ is closed to new replies.