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

position='right center' is not working? #1403

Closed
sairamrishi opened this issue Mar 1, 2017 · 5 comments
Closed

position='right center' is not working? #1403

sairamrishi opened this issue Mar 1, 2017 · 5 comments

Comments

@sairamrishi
Copy link

sairamrishi commented Mar 1, 2017

**Steps to Reproduce

I'm trying to make the position of popup right centre, but it's always coming default . Please
anybody can help. Even if i using the attribute position = "right center".

@layershifter
Copy link
Member

Please make a codepen. Examples in docs works as expected.

@levithomason
Copy link
Member

<Popup
  trigger={<Icon name='heart' color='red' size='large' circular />}
  content='I am positioned to the right center'
  position='right center'
/>

image

@sairamrishi
Copy link
Author

Thank u levithomason for responding me back. Actually it's working in Codepen. But in my project on the default top-left position is coming even if i use the position = 'right center'. But the styles are there for
'right center'

@levithomason
Copy link
Member

I am not sure if you are still having an issue. If you are, I will try to take a look if you post your code here or, even better, in a codepen.

@JuanOtavaloMaigua
Copy link

In v2 you can use this format:<Popup popperModifiers={{ preventOverflow: { padding: 0 } }} /> or this if you want to move at top or right: popperModifiers={{ preventOverflow: { padding: {top: -100, right: -90}} }}. You can find more modifications here: https://popper.js.org/docs/v2/utils/detect-overflow/#padding

@Semantic-Org Semantic-Org locked as resolved and limited conversation to collaborators Feb 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants