3 dots menu out of screen borders when selecting a global variable

So the problem started ate the new release 3.51,

When ever I select a global variable, the 3 dots menu becoms out of screen borders, making me unable to edit the variable.

If i switched to landscape, its back, but a new problem emerge, as the popup window to edit the variable is not scrollable, so you can't edit anything, and its gone once you switch back to portrait mode.