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

Clamping doesn't work if the ClampLines element is inside a RelativePortal #30

Open
Flixbox opened this issue Aug 26, 2019 · 1 comment

Comments

@Flixbox
Copy link

Flixbox commented Aug 26, 2019

https://codesandbox.io/embed/clamplines-weirdness-relativeportal-yo87m

Basically, the react-relative-portal package creates a new element at the exact position it would be at normally but the element is moved straight to the body. This causes issues with ClampLines - The lines are shown, but not clamped.

@Flixbox
Copy link
Author

Flixbox commented Aug 29, 2019

I've added another example to the codesandbox with a ClampLines element in the root div. It's working perfectly fine in the root div, but doesn't clamp anything in the Portal.

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