We can either do not set width/height or assign auto:
$("#dvShowContents").dialog({
buttons:
[
{
text: "Cancel",
click: function () {
$(this).dialog("close");
}
}
],
modal: true,
title: 'Show some contents',
width: 'auto',
height: 'auto'
});
$("#dvShowContents").dialog({
buttons:
[
{
text: "Cancel",
click: function () {
$(this).dialog("close");
}
}
],
modal: true,
title: 'Show some contents',
});
Posted On:
04-Jun-2021 21:26