vue-js-popover icon indicating copy to clipboard operation
vue-js-popover copied to clipboard

Incorrect Popover position

Open Anntrick opened this issue 6 years ago • 10 comments

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:

`

`

Thanks

Anntrick avatar Feb 20 '19 09:02 Anntrick

+1

erashdan avatar Mar 07 '19 06:03 erashdan

+1

nunesdev avatar Apr 03 '19 19:04 nunesdev

+1

fusionsquare avatar Apr 12 '19 17:04 fusionsquare

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

+1

melanke avatar Jun 18 '19 18:06 melanke

See this issue: https://github.com/euvl/vue-js-popover/issues/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.

smilingkite avatar Jun 19 '19 08:06 smilingkite

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.

melanke avatar Jun 19 '19 12:06 melanke

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 ... 😞

zangab avatar Feb 03 '20 16:02 zangab

+1

zuobaiquan avatar Aug 05 '20 06:08 zuobaiquan

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

CharltonSantana avatar Aug 23 '20 20:08 CharltonSantana

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

dingyaguang117 avatar Jul 02 '22 14:07 dingyaguang117