-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Problems with inner and offset modifiers #373
Comments
Said that, the |
Found the problem with your examples. The This is an expected behavior of the For your use case, as I said, you should use the |
Now that 1.12.1 is published you can accomplish your requirements with: |
hack to make tooltip appear directly below reference element, ignoring padding. Workaround for floating-ui/floating-ui#373
I am not sure if this library can be used to sync the position of overlapping elements and align them by their corners. I played around with some of the settings but I am not sure why the following even works and if its the way to go:
Align top-left corners:
0, -100%p
Align bottom-left corners:
0, -100%r
Align bottom-right corners:
100%r-100%p, -100%r
Align top-right corners:
100%r-100%p, -100%p
However, the problem is that the vertical offset seems to have
r
andp
flipped. Whenever I thought I needed to use-100%p
i needed to use-100%r
instead, and the other way around.Am I missing something?
Here is a codepen showing that it works, but I don't understand why ;) ?:
https://codepen.io/anon/pen/qXaZoQ
The text was updated successfully, but these errors were encountered: