Web Popover changes position on scroll

Hello all,

I’ve created a popover using the code below.

Dim pop As New popContCreateNewContact
pop.ShowPopover(Self, WebContainer.DisplaySides.Bottom, 100, 300)

When it displays, it is in a great position. However, when the pages is scrolled, it moves lower and to the left. Moving lower is fine, but having it move to the left is not. Is there any way to control this behavior?

The video below shows what I am facing.

popover moves.zip (2.2 MB)

Thanks,
Tim

Anyone?
Tim

I tried to make the example that comes with Xojo fail, but as is simpler than your application I don’t get the problem:

ForTimPop.xojo_binary_project.zip (13.5 KB)

Can you create a sample project that reproduce the problem?

Your sample moves too. Scroll up and down.

Mine use is different since it has nested containers. I’ll make a sample too

Tim

The Popover is showing related to the button, if I scroll it moves up/down with the button.
That is what I expected and for that reason I wrote “I don’t get the problem”.
Do you expect the popover to stay static over the webpage when you scroll? I’m getting confused.
I can’t see movement to the left/right as your video. Do you see that?
That is the part I can’t replicate.

Hi Alberto.
I do want to to scroll with the window, just not move to the left or the right.

Found how to do it. Seems that one call I had was from a button push. This worked without the left movement. The other place I call this from is within a weblistbox. In that case I used Self.

Dim pop As New popContCreateNewContact
//pop.ShowPopover(Self, WebContainer.DisplaySides.Bottom, 100, 300)
pop.ShowPopover(cmdCreateNew, WebContainer.DisplaySides.Bottom, 100, 300)

I changed that from Self to the name of the button that had the first call. Now it scrolls with the window but does not go to the left.

Thanks,
Tim

1 Like