bigspotteddog/ScrollToFixed

reinitialize/reset plugin after window resize with new settings

Opened this issue · 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