我已经创建了一个像这样的对话框:
this.dialog({
autoOpen: false,
modal: true,
resizable: true,
draggable: true,
height: 'auto',
width: 875,
buttons: {
....<code here>
},
open: function (event, ui) {
if ($(this).data('action') != "Editing HTML") {
是否有某种方法可以将“打开”内的高度和宽度更改为:
width: $(window).width() - 20,
height: $(window).height() - 20,
如果满足检查“行动”的上述条件?