How to hide UI dialog at page load

How to hide UI dialog at page load


I tried to put a dialog DIV element in a hidden tag (display:none), to
be shown only when call "dialogOpen".
But it happened that the clientWidth is calculated as 0 when a element
is hidden, so the dialog position on display is not centered.
I looked at the source code at line 98 (positioning with 'center'
option), uiDialog.width() returns 0 because the element is still
hidden. It could be replaced with options.width (provided
options.width is supplied as integer like 800 , not "800px").
Is there better solution, or how else I could hide the dialog at page
load?
Thanks