Skip to content

How to position popup/flyout with respect to screen #10812

Answered by chrisglein
lcherukuri asked this question in Q&A
Discussion options

You must be logged in to vote

If you check out the Gallery app (https://github.com/microsoft/react-native-gallery) it has examples of positioning Flyouts. Both a fixed offset and attaching to position near an element.

For your situation where you want one part fixed (the top margin) and the rest proportional (half width), I don't know if you can do that. The offsets are just numeric.

You could create an element that is in the spot you want the Flyout and is invisible and then position to that? Kind of annoying, but that might work?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TatianaKapos
Comment options

Answer selected by chrisglein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants