FAQ
overflow

Great Answers to
Questions About Everything

QUESTION

Is there a way to automatically resize the inline visualforce components on standard page layout based on the content of the visualforce page.

Update

Has anyone used this app or link to implement automatically resize inline visualforce component

App is not working for orgs with custom domain.Someone please help me.

{ asked by sf.dev }

ANSWER

I don't believe there is, from what I recall I've always had to set a static height. Unfortunately the standard page layout and the Visualforce get served up from different domains, so you can't do any cross site scripting to access the Visualforce page's parent and resize the iframe.

The alternative is using a custom VF page to replace the Standard Page Layout (using apex:detail) and appending your Visualforce customizations to the bottom.

{ answered by Michael Welburn }
Tweet