Ion-popover positioning issue

Hello,
When the element that dispatches the event that shows the ion-popover is too low, (the y coordinate + popover’s height exceeds the windows height), the popover is located at the top of the page.

There is a chance for modify the direction of the popover referencing an element on screen, like upward or downward?
Or a workaround to this issue?

Greetings…