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
KVaishnaKVaishna 

Set height/width of inline vf page

Hi,

 

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?

 

 

gv007gv007

Vaishna,

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

Thanks

 

KVaishnaKVaishna

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.

gv007gv007

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
Frank_NunezFrank_Nunez
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 (https://blog.force365.com/2013/02/11/ui-tips-and-tricks-inline-visualforce-resize/)