Forum Academy Marketplace Showcase Pricing Features

Distance between top of the page and top of the current screen position

How can i get the distance between top of the page and top of the current screen position in pixels?

Hi there, @chelovekius… have you already checked out the Current page scrolling position operator?

Best…
Mike

1 Like

Yes, I completely forgot about this operator. I tried to make the popup position from the top of the screen if the popup size is larger than the screen size.
This expression does not work if the popup is larger than the screen:
top: 0 !important;
bottom: 0 !important;
margin: auto !important;
height: fit-content !important;
Therefore, you need to specify exactly as many pixels from the top of the page to the top of the screen.

1 Like