How to Set a WebDialog to Screen Center

I posted an example of how to set an initial position of a WebDialog using the onLoad event. It demonstrates one way to get the screen dimensions, the dialog size, and using a callback to set the dialog position.

I have tried using the javascript self.moveTo function in a WebDialog in order to avoid using the callback, but I can't get the dialog to respond to the function call.

View post.

No comments:

Popular Posts (Last 30 Days)