Title: Page resize
Last modified: February 16, 2020

---

# Page resize

 *  Resolved [boschiotto4](https://wordpress.org/support/users/boschiotto4/)
 * (@boschiotto4)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/page-resize-2/)
 * 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](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/page-resize-2/#post-12442123)
 * 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](https://wordpress.org/support/users/boschiotto4/)
 * (@boschiotto4)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/page-resize-2/#post-12443124)
 * you’re the best! great
 *  [xcflyer](https://wordpress.org/support/users/xcflyer/)
 * (@xcflyer)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/page-resize-2/#post-12460833)
 * 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](https://wordpress.org/support/users/webfactory/)
 * (@webfactory)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/page-resize-2/#post-12460951)
 * 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.

 * ![](https://ps.w.org/sticky-menu-or-anything-on-scroll/assets/icon-256x256.gif?
   rev=2564941)
 * [Sticky Menu & Sticky Header](https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/)
 * [Active Topics](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [WebFactory](https://wordpress.org/support/users/webfactory/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/page-resize-2/#post-12460951)
 * Status: resolved