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

Percent in offset not calculating correctly #131

Closed
steevee opened this issue Sep 14, 2017 · 0 comments
Closed

Percent in offset not calculating correctly #131

steevee opened this issue Sep 14, 2017 · 0 comments

Comments

@steevee
Copy link

steevee commented Sep 14, 2017

Say the rect.height = 300, when using something like this:

<div in-view="inView($inviewInfo)" in-view-options="{ offset: ['-25%',0] }">

The resulting element offset is calculated as: [-7500,0,-7500,0]

It should be: [-75,0,-75,0]

@steevee steevee changed the title Percentages in offset not calculating correctly Percent in offset not calculating correctly Sep 14, 2017
thenikso added a commit that referenced this issue Sep 25, 2017
Fixes #131 - percent correctly translated
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