Modify the position of the dialog pop-up box

When the dialog is popped up, it is not necessary to open it with $('#dialogDiv').dialog('open');. Open with $('#dialogDiv').window('open');. Then use the resize method of the window to rearrange the layout.
Something like:
var top = $("#struBtn").offset().top + 30;
var left = $("#struBtn").offset().left;
$('#dialogDiv').window('open ').window('resize',{width:'250px',height:'500px',top: top,left:left});

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326068825&siteId=291194637