WebApp keeping a control in the center of a page

Hey all,

I’m banging my head against this.
I’m trying to get a container to stay in the middle of the browser screen.
On shown and resized I do the math to bump the container to the right page,
but sometimes shown doesn’t fire and it’s left hanging in the wrong place.

I’m sure I’m missing an obvious solution.
Suggestions?

If you use the IDE, you can put the container in the middle of the page and check off all locks, that will center/middle the container to the page.

If you add the container with code, I’m not sure how to do the same.

3 Likes

wwwwwwwwhhhhhaaaaat!

How did I not know this!
I thought you always had to have at least one of those checked for each axis.

Thank you!

That’s a ‘desktop’ thing.