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

Sugglishness in Adjusting Spacing #127

Closed
hornj opened this issue Dec 2, 2016 · 1 comment
Closed

Sugglishness in Adjusting Spacing #127

hornj opened this issue Dec 2, 2016 · 1 comment

Comments

@hornj
Copy link

hornj commented Dec 2, 2016

I'm implementing StickyTableHeaders in my site, and I'm noticing some sluggishness. The main issue is when the header first sticks to the top of the screen the positioning is wrong for about a second before jumping into place. In this jsfiddle I'm seeing the behavior in both Chrome and Firefox.

I have made the 'top': base.options.fixedOffset change from #112 to get Chrome to work properly.

@hornj hornj closed this as completed Dec 2, 2016
@hornj
Copy link
Author

hornj commented Dec 2, 2016

I realized that this was my mistake. I had forgotten I added a 1 second delay to the debounce for updateWidth. When I took that out, the issue went away.

Though shouldn't updateWidth always run immediately when called by toggleHeaders? Does it need the debounce?

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