You need to sign in to do that
Don't have an account?
William Ng
Visualforce auto height
Hi all,
I have question on Visualforce page embeded in detail page. My content on the VF page is dynamic, so I can't have a fixed height of the frame. What is the proper way to implement auto resize the iframe for VF? It would be great if someone here can point me to the right direction. Thanks.
I have question on Visualforce page embeded in detail page. My content on the VF page is dynamic, so I can't have a fixed height of the frame. What is the proper way to implement auto resize the iframe for VF? It would be great if someone here can point me to the right direction. Thanks.
Salesforce OOB provides you with the adjustments.
Go to edit layout of your detail page,
Click on properties of your inline VF page, there you could select the below properties.
PLEASE SELECT THIS AS THE BEST ANSWER, IF YOU LIKE IT.
Thanks,
Rohit Alladi
any apex:outputPanel or DIV can take a height attribute like this one, many other components also accept style cssstyle or height attributes.
Hop it helps,
Regards,
Jyothsna D
see below link
http://salesforce.stackexchange.com/questions/30605/how-to-create-visualforce-page-with-iframe-with-auto-resizing-height
http://salesforce.stackexchange.com/questions/46200/dynamically-resize-visualforce-section-in-page-layout
Thanks
Rupal Kumar
Mirketa Software Pvt Ltd
http://mirketa.com/index.html
I tried to use the cross-domain iframe script method, it kinda works with Classic mode, but I still run into a little problem with Lightning (since they changed the domain name when you switch between Classic and Lightning)
Any ideas? Thanks.
William
William
I'm struggling with the same problem here, have you figured out how to adjust the height of the VF page?