function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
prati@salesforceprati@salesforce 

Full vf page not displaying in a page layout section

Hi 
I am not sure if anyone has faced this issue but I have written a visualforce page with standard controller and embedded on the standard page in a separate section on page layout. It looks fine but doent display the complete page , means the vf page is not displaying last few lines or chopping them off?
Is it a restriction or is there a work around it?

Thank you
Best Answer chosen by prati@salesforce
Prateek Singh SengarPrateek Singh Sengar
Hi,
When adding an inline visualforce page into a page layout you can't provide relative height of the vf component. Meaning you need to specify the height of the component that it will display.

For eg: While adding the VF page to your pagelayout you specified the height to be 400px and your VF page renders to 600px then the last 200px will not be displayed

Solution:
1) Ensure that the height defined for the inline VF component is the max height of VF page.

Or
2) Enable scroller (vertical) so that in case your page is bigger then specified height you get a scrolller in the component and you can view it.
 

All Answers

Prateek Singh SengarPrateek Singh Sengar
Hi,
When adding an inline visualforce page into a page layout you can't provide relative height of the vf component. Meaning you need to specify the height of the component that it will display.

For eg: While adding the VF page to your pagelayout you specified the height to be 400px and your VF page renders to 600px then the last 200px will not be displayed

Solution:
1) Ensure that the height defined for the inline VF component is the max height of VF page.

Or
2) Enable scroller (vertical) so that in case your page is bigger then specified height you get a scrolller in the component and you can view it.
 
This was selected as the best answer
prati@salesforceprati@salesforce
Thank you Prateek.