Auto width and height in Jquery modal

Just follow bellow code

$(‘#your_id).dialog(
{
modal: true,
height: ‘auto’,
width: ‘auto’
});

 

Hope it will help you.