Why isn't my UMG widget consistently centered on the canvas?

I’m trying to compute a Vector2D whose coordinates are located in the center of the screen. I’m trying to do that by getting the viewport’s size, and dividing each number by two:

That seems like it should work, but when I run this in the editor, it places things in the upper-left quarter of the screen, and when I run it as a standalone game it gives me coordinates at the very top-left corner, just outside of the actual viewport.

So am I doing something wrong here?


I am closing this post as a duplicate of https://answers.unrealengine.com/questions/342663/why-cant-i-center-my-umg-widgets.html
Please refer to that post for any information regarding this issue.

Have a great day,

Sean Flint