-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fix Jitter #6
Fix Jitter #6
Conversation
Smoothed out the jitter by including full margin in height calculations
FIXED JITTER. must set child height state if children changed.
@@ -37,6 +37,8 @@ | |||
}, | |||
"license": "Apache 2.0", | |||
"dependencies": { | |||
"element-size": "^1.1.1", | |||
"lodash": "^3.9.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the lodash dependancy for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it in because the build was complaining about it not being there. I don't remember where it was being used though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah looks like I use it in the example and didn't add it to the dependancy. Can you move it to the devDependencies since it's not a requirement of the actual component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see, I'll fix that.
Thanks for the pull request! Sorry it has taken me so long to get around to reviewing it. |
Formatting cleanup for pr to original master repo.
Added those changes into the pr. |
lgtm 👍 |
Released as v0.3.0 |
The height calculation now includes margin. Also added a check to see if the children height changes so scroll calculations are good for the new children.