We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Component should be recalculating sticky dimension and position on document resize, otherwise it doesn't work correctly with RWD.
import Ember from 'ember'; import StickyContainer from 'ember-cli-sticky/components/sticky-container'; const WINDOW = Ember.$(window); export default StickyContainer.extend({ addResizeHandler: Ember.on('didInsertElement', function() { const updateSticky = () => this.$().sticky('update'); WINDOW.on('resize.sticky-container', () => { Ember.run.debounce(this, updateSticky, 100); }); }), detachResizeHandler: Ember.on('willDestroyElement', function() { WINDOW.off('.sticky-container'); }) });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Component should be recalculating sticky dimension and position on document resize, otherwise it doesn't work correctly with RWD.
The text was updated successfully, but these errors were encountered: