I can add one JQuery UI Dialog centered without any issues. What I want to do is add two JQuery UI Dialogs, one on top of the other, with the center of the screen "cutting between" the two dialogs so that they're centered vertically on the screen.
If I add:
if(i > 0) {
$("#dialog" + i).dialog("option", "position", {my: "top", at: "bottom", of: $("#dialog" + (i-1))});
}
then the first dialog will be centered with the second dialog under it. Is there some way to position the first dialog to be higher by half its height?