Found !
For example, but to be improved:
$(myDiv).dialog({
dragStop: function(ev, ui){
if (ui.position.top < 0 || ui.position.left < 0) {
$(this).dialog("position",[200,10]);
}
}
})
Olivier
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---