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

Set height/width of inline vf page



I have inline Visualforce page which I include in page layout for some functionality.


I have set page height as 100px in page layout. If User is of one role then I want to display 10 links and if User is another role then dislay 6 links.


How do I change page height based on logic in vf page?





                In inline VF page you can display more then 5 colums because of iframe limit.




Thanks Gopi.


I want to set page height based on my logic. I am fine with 2 or 3 columns but height I can set from vf page which overrides height mentioned in page layout.


small correction for my previous post.We can't display more then 5 rows in a inline VF page.with the help of java script you can do it ,

sandeep reddy 37sandeep reddy 37
can u tell me the one example please gopi
You should consider including JS code to validate the user profile and resize the page. This operation must be done when the page is loaded. See the following link (