Please refer to the API documentation to adjust the position of the dialog based on your needs:
The default parameters are:
{ my: "center", at: "center", of: window }
Example usage:
$( ".selector" ).dialog({ position: { my: "left top", at: "left bottom", of: button } });
For more precise positioning, please refer to this page.
$( "#position3" ).position({
my: "right center",
at: "right bottom",
of: "#targetElement"
});