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
CapCbRMCapCbRM 

Control Size of Layout Panel Dynamically?

VF Board,

 

I currently have a VF page that is displayed on a layout for my Opportunity object, leaving the Opportunity layout intact to keep the inline edibility.

 

I was wondering if there is a way to dynamically control the height of the VF page on the layout?

 

The VF page displays a set of milestones for an Opp, some will range from 5 to 15 depending on the project type. Is this doable concept or is it restricted?

bob_buzzardbob_buzzard
You can't affect the size of the iframe that the VF page appears in, as it is "owned" by the main page, and the main page comes from a different server to the VF page.  Your browser considers any attempt by the VF page to interfere with the main page as cross site scripting and will block it.
CapCbRMCapCbRM

I figured that would be the answer :(

 

Thanks for the input