You can't force the mouse to stay inside the parent, but you can automatically scroll to see the bottom right corner of the child when resizing it :
resize: function (event, ui) {
$('#parent').scrollTop($('#child').height());
$('#parent').scrollLeft($('#child').width());
}
See this Fiddle