Jqueryui对话框"resizeable:false"不起作用?

Dev*_*ate 0 javascript jquery jquery-ui

以下是我的代码.当它打开模态时,即使它被设置为false,它也可以调整大小.这不是预期的.所有其他参数按预期工作(高度,宽度,位置,可拖动,模态).

    //MODAL IFRAME POPUP FOR EDITS/adds
    $("#modalDiv").dialog({
        modal: true,
        autoOpen: false,
        height: '400',
        width: '400',
        position: ['150','200'],
        draggable: true,
        resizeable: false,
        title: ''
    });

    //catch a click on an item with the class "add" open modal div.
    $('.add').live('click', function () {
        var thing = $(this).attr('add')
        url = 'add/' + thing + '.aspx?appid=' + $('.lblAppID').html();
        $('#modalIFrame').attr('src', url);
        $('#modalDiv').dialog('open');
        return false;
    });
Run Code Online (Sandbox Code Playgroud)

但是,如果我从模态iframe中调用以下代码,则会使其无法实现(如预期的那样).

window.parent.$("#modalDiv").dialog("option", "resizable", false);
Run Code Online (Sandbox Code Playgroud)

这很有效,但最好是我想知道我错过了什么......我确信这是愚蠢的.救命?

Nik*_*las 9

它是可调整大小的,不可调整大小.