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

Add 'flipVariationsByContent' option to flip modifier #754

Merged
merged 2 commits into from Feb 28, 2019
Merged

Add 'flipVariationsByContent' option to flip modifier #754

merged 2 commits into from Feb 28, 2019

Conversation

atomicbrainman
Copy link

Should close #512

Basically, flipVariations switches the variation if reference element overflows boundaries (good when reference element is larger than popper)

This PR adds flipVariationsByContent, which switches the variation if popper itself overflows boundaries (good when popper content is larger than the reference element, usually a button or input)

@berdyshev
Copy link

this is what I really need. thanks!

@xxia34
Copy link

xxia34 commented Feb 28, 2019

I really need this as well!

@FezVrasta FezVrasta merged commit bc269c8 into floating-ui:master Feb 28, 2019
@Justineo
Copy link

Justineo commented Apr 3, 2019

@FezVrasta Is there any recent plan to release a new version with this feature?

@FezVrasta
Copy link
Member

1.15.0 released

@Justineo
Copy link

Justineo commented Apr 4, 2019

Great, thanks!

@Tiano1972
Copy link

Cool
Thanks

@pleek91
Copy link

pleek91 commented Sep 26, 2019

is there an example of how to use this? I'm having the same issue as #512. Searched the docs for flipVariations and flipVariationsByContent and didn't find any results.

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.

Is there a way to apply flip before preventOverflow?
7 participants