Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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(&#39;{SiteUrl}/_layouts/itemexpiration.aspx?ID={ItemId}&amp;List={ListId&#39;,&#39;center:1;
dialogHeight:500px;dialogWidth:500px;
resizable:yes;status:no;location:no;menubar:no;help:no&#39;,function GotoPageAfterClose(pageid){if(pageid == &#39;hold&#39;) {STSNavigate(unescape(decodeURI(&#39;{SiteUrl}&#39;))+&#39;/_layouts/hold.aspx?ID={ItemId}&amp;List={ListId}&#39;);return false;} 
if(pageid == &#39;audit&#39;) {STSNavigate(unescape(decodeURI(&#39;{SiteUrl}&#39;))+&#39;/_layouts/Reporting.aspx?Category=Auditing&amp;backtype=item&amp;
ID={ItemId}&amp;List={ListId}&#39;);return false;} if(pageid == &#39;config&#39;) {STSNavigate(unescape(decodeURI(&#39;{SiteUrl}&#39;))+&#39;/_layouts/expirationconfig.aspx?ID={ItemId}&amp;List={ListId}&#39;); return false;}}, null); return false;
</div>
share|improve this question
add comment

1 Answer

I believe the answer to this is already on technet: How do I resize a dialog box once it's open?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.