-
Notifications
You must be signed in to change notification settings - Fork 1k
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
offsetParent with padding problem #218
Comments
Unfortunately, I don't have access to a Linux for now so I can't create the PR.
Despite the comment, the bug is here:
So the fix would be something like this here:
I also suggest adding paddings to this box in the example, like so:
It would be nice if someone could create a PR for this before I get my hands to a Linux ;) |
Nice, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the offsetParent option and setting padding the parent makes the right drag limit wrong (it looks like its padding-left + padding-right).
Reproducing the bug on the demo is easy, just open the dev tools and set the padding to the container with scrollbars.
Setting only the left padding 'works' (in this case, the right padding must not be set and is the same as left...).
Maybe I missed something ?
The text was updated successfully, but these errors were encountered: