+ Start a Discussion
SurekaSureka 

Help in fixing Visualforce page size in standard page layout....

Hi All,

 

I am displaying a VF page, inline with standard pagelayout, to display a field labe and value. But the alignment of the page changes when the side bar is expanded or collpased, as shown in the below screenshot:

 

Eg.

 

1.  Sidebar expanded

 

abclabel    abcvalue

vflabel        vfvalue

 

2. Sidebar collpased

 

abclabel    abcvalue

             vflabel        vfvalue

 

 

vflabel & Vfvalue is the inline visualforce page. Thus the alignment of the page changes, when the sidebar is expanded & collapsed. I found this is nothing to do with the parameters in VF page.

 

Possible solution would be to check whether the sidebar is expanded or collpased & to set VF page styleclass accordingly. I am not sure, how to check whether the sidebar is expanded or collapsed.

 

Please suggest if there are other alternatives.

 

Thanks

Bhuvana

Pradeep_NavatarPradeep_Navatar

"collapsible" property exists in pageblock section, you can check whether the sidebar is expanded or collapsed due to this property.