If the menu is opened when it is near the bottom of the viewport, it scrolls the screen. If the screen had not been scrolled, it would have been properly positioned above the element. https://user-images.githubusercontent.com/126914115/236873700-37d4549d-07f9-4361-b0ae-3192d2344b04.mov