I've got a scenario where a third party app is using jqUI. So for my customizations I wish to use another version and have provided a custom CSS scope. With .dialog() jqUI moves the target outside of my custom scope for the absolute positioning/overlay. Here's a workaround:
// custom jQ namespace
var d = my.jq('#my-modal').dialog({ modal: true, autoOpen: false});
d.parent('.ui-dialog').wrap('<div class="my-part"></div>');
d.dialog('open');
However this now breaks the overlay shadowing. Does anyone have a fix for this?