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

Take into account possible CSS transforms on the element #209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Take into account possible CSS transforms on the element #209

wants to merge 1 commit into from

Conversation

fabianhijlkema
Copy link

In my use case I'm centering pep elements with CSS transform (-50%, -50%), and positioning them absolutely using percentages (I'm doing this outside the plugin). Adding the following changes makes sure that while the elements stay in their relative position while resizing window or parent, they also work nicely with the constraint-option. Without these changes, this doesn't work well. I'm using this option with useCSSTranslation set to false, but it seems to override nicely when set to true.

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

Successfully merging this pull request may close these issues.

1 participant