Dialog options to configure their draggable/resizable options?
When I call dialog(), is there any way to pass in options to modify
their options for the subsequent calls for draggable() and
resizable() ?
For example, I'd like to make a div a dialog, but only draggable
within a given area, or resizable up to a certain size. I envision
something like this:
someDiv.dialog({
title: "Some Div",
resizableOptions: {
maxHeight: 400,
maxWidth: 500
},
draggableOptions: {
containment: someOtherDiv
},
});
This should be a fairly small change to ui.dialog.js, right? Just
passing the inner options into the inner calls? If there's interest
in this feature I'd be willing to work on it myself.