bollo
bollo

Reputation: 55

Why doesn't my dialog drag or resize?

I am unable to drag or resize a dialog box. I have downloaded all dependencies and tried various settings in options, but still no joy:

<script type="text/javascript">
function dialog(){
$("#paragraph").dialog({
    title: 'This is a title',
    width: 300,
    height: 50,
    modal: true,
    draggable: true,
    autoOpen: false,
    buttons: {
            'Remove': function () { // remove what you want to remove 
                // do something here 
                alert("this is a test alert!");
                $(this).dialog('close');
                $("#flex1").flexReload();
            },
            Cancel: function () {
                $(this).dialog('close');
            }
        }
});
$("#paragraph").dialog("open");
};
</script>

<p id="paragraph">This is some paragraph text</p>

Upvotes: 1

Views: 1791

Answers (2)

rsidie
rsidie

Reputation: 21

Downloads of the jQuery UI library are customizable. If your copy doesn't include the 'Draggable' and 'Resizable' interactions, your dialog will not be draggable or resizable.

Upvotes: 1

Leo
Leo

Reputation: 1529

Well maybe add resizable option and set it to true.

Also the dialog is draggable by the title bar not the entire dialog body.

Any good?

Upvotes: 0

Related Questions