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

Incorrect Popover position #45

Open
Anntrick opened this issue Feb 20, 2019 · 10 comments
Open

Incorrect Popover position #45

Anntrick opened this issue Feb 20, 2019 · 10 comments

Comments

@Anntrick
Copy link

Hello

I have a problem when I try to use the popup, I just copied the sample code into a new component to test and the popup window is appearing lower than it should.

image

I've tried to solve by modifying the code by myself like I saw in other similar issues but that doesnt worked.

My component code is:

`

Toggle popover

Hello 🎉


<script> import Vue from 'vue'; import Popover from 'vue-js-popover' Vue.use(Popover); export default { } </script>

`

Thanks

@erashdan
Copy link

erashdan commented Mar 7, 2019

+1

2 similar comments
@nunesdev
Copy link

nunesdev commented Apr 3, 2019

+1

@fusionsquare
Copy link

+1

@melanke
Copy link

melanke commented Jun 18, 2019

This problem happens when it is inside an element with position relative.

+1

@smilingkite
Copy link

See this issue: #27
It's still open after more than a year, so I think someone who is seriously good at stuff like this should look at it.
For some people it apparently works to simply use version 1.1.6 of this plugin. However, for me that doesn't position the popover correctly either.

@melanke
Copy link

melanke commented Jun 19, 2019

Yea you are right, for now, I've made an workarround, with an position:absolute element around it with top and left setup.

I will consider fixing it on my free time.

@zangab
Copy link

zangab commented Feb 3, 2020

is there any update regarding this issue?
i have a popover in a position fixed top-bar but as the popover positioning is beeing absolute and the scrolltop is ALWAYS added to the top positioning this won't work ... 😞

@zuobaiquan
Copy link

+1

@CharltonSantana
Copy link

Have you tried putting the popover inside a div with position relative (inside if the absolute positioned div)?

@dingyaguang117
Copy link

maybe vue-js-popover should use https://floating-ui.com/docs/computeposition to compute the position

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

No branches or pull requests

10 participants