Tuesday, April 5, 2011

Resizing the IFRAME in Header in CRM 2011

I was trying to add an IFRAME in the header in CRM form with a height of just 1 row. For some reason. CRM would not respect the 1 row height in the header. It would display about 6 rows always. This was very strange but after posting in the CRM Dev Forum (http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/da61999c-d5e3-45a9-841c-3e09a84782d4/), it was confirmed that this seems to be a bug.
As a workaround, you an try the following code:
document.getElementById('IFRAME_Name').style.height = 35;

OR
document.getElementById("IFRAME_Test_d").parentElement.parentElement.height = 35;
Update - This issue seems to have been resolved with the Update Rollup 1 for MS CRM 2011

No comments:

Post a Comment