First implementation.

Implemented to open dialog in window center, and on a specified element center, using "Rect".
Implemented the dialog position.
Implemented adjust the dialog width to the window width
Updated submodule.