You can use the jQuery UI resize event dialog.
This event is fired when the dialog box is resized. Demo Code Samples
Set a callback function to handle the resize event as an init parameter.
$( ".selector" ).dialog({ resize: function(event, ui) { ... } });
Bind to the resize event by type: dialogresize.
$( ".selector" ).bind( "dialogresize", function(event, ui) { ... });
source share