+ Start a Discussion
Srik PothSrik Poth 

Inline Visualforce Auto Expander/Contract based on record count

Hi there, 

I have a custom visualforce page as a related list on a page layout. Based on the number of records in the related list, The Visualforce page used to automatically contract and expand. In order to achieve this functionality from part one year i have been using this free app (https://appexchange.salesforce.com/listingDetail?listingId=a0N30000004cEEyEAM). Because of the recent summer’15 release this app failed and the page is showing a default height (800 in pixels) which leaves a huge space on the page layout if there are less than 15 records in that related list. There are other related lists below after the blank space and I’m unsure about what to do. 

Is there any other way to achieve this functionality programmatically? If yes, Can you please share links? Your help and time is greatly appreciated. 

Unfortunately not. The size of the iframe is fixed in the page layout and you can't change that programmatically any more.