Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reinitialize/reset plugin after window resize with new settings #228

Open
pravinweb opened this issue Dec 8, 2016 · 0 comments
Open

reinitialize/reset plugin after window resize with new settings #228

pravinweb opened this issue Dec 8, 2016 · 0 comments

Comments

@pravinweb
Copy link

pravinweb commented Dec 8, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant