I have tried following code, but it only positions dialogs left upper corner position to center, and that makes element to be aligned to right. How can I center dialog to real center which counts elements width, so that center line will cut dialog to 50% 50% halfs?
$('.selector').dialog({ position: 'center' });
If you are using individual jquery files or a custom jquery download either way make sure you also have jquery.ui.position.js added to your page.
For Win7/IE9 environment just set in your css file:
To fix center position, I use:
The latest jQuery UI has a position component:
Doc: http://jqueryui.com/demos/position/
Get: http://jqueryui.com/download
Following position parameter worked for me
Good luck!
Because the dialog need a position, You need to include the js position