Custom context menu widget only updates on second click.

I’m making a context menu with the right mouse click and right now I got it to move so that it does not go off-screen, the problem is that I got this working with “Get Desired Size”, and this node needs a pre-pass. How can I work around this? I have tried “Get Size” of the Slot but that does not work since I have Size to Content turned on.


Upgraded a bit, now instead of fully moving the context menu from one side to the other, it “locks” to the side of the screen. But it still needs to update once before going to the right position. You can have it and it should work perfectly on the tick function, I’m just trying to get it working properly.