ScrollToFixed icon indicating copy to clipboard operation
ScrollToFixed copied to clipboard

reinitialize/reset plugin after window resize with new settings

Open pravinweb opened this issue 8 years ago • 0 comments

Hi,

Is there a way I can reinitialize/reset plugin after resize. my code is as follows.

`var mobileNavheight = function(){ if(screenWidth < mobileBreakPoint){ return $('header .navbar-fixed-top').outerHeight(); }else{ return 0;
} }

elem.scrollToFixed({ marginTop: mobileNavheight });`

when window get resize and below mobile break point plugin should reload with new settings

Thanks, Pravin

pravinweb avatar Dec 08 '16 03:12 pravinweb