The calendar web part is too wide and want to change dialogWidth and dialogHeight's values from 500px to 300px. Is it possible to change dialogWidth and dialogHeight of a web part like changing the table's width with javascript?
Thank you.
the code about dialogWidth/Height:
<div>
javascript:commonShowModalDialog('{SiteUrl}/_layouts/itemexpiration.aspx?ID={ItemId}&List={ListId','center:1;
dialogHeight:500px;dialogWidth:500px;
resizable:yes;status:no;location:no;menubar:no;help:no',function GotoPageAfterClose(pageid){if(pageid == 'hold') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/hold.aspx?ID={ItemId}&List={ListId}');return false;}
if(pageid == 'audit') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/Reporting.aspx?Category=Auditing&backtype=item&
ID={ItemId}&List={ListId}');return false;} if(pageid == 'config') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/expirationconfig.aspx?ID={ItemId}&List={ListId}'); return false;}}, null); return false;
</div>