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
shobana shobanashobana shobana 

how to reduce the height of section in page layout

Hi everyone
For Lead object i want to put a Visualforce page as a section in it. However, the height of the content varies, and when I drop the section in, there is a large white space if the content does not fill. How do I deal with this.

Can anyone help me out to solve this issue.....

User-added image
Thank you in advance...
Bhanu PartapBhanu Partap
Hi ,

Please share your VF code if possible.
shobana shobanashobana shobana
Thank you for your replay.

My visual force page
<apex:page standardController="Lead" extensions="OpenTasks" >
<apex:form >
    <apex:pageBlock title="Open Tasks" mode="edit" id="opnTsks">
        <apex:Messages />       
        <apex:pageblockButtons location="Top">
            <apex:commandLink action="{!leadld}&retURL={!leadld}"  
             styleClass="btn" style="text-decoration:none;padding:4px;"  value=" New Task" target="_top"/>
            <apex:commandButton value="Close" action="{!close}" rerender="opnTsks" />
            <apex:pageBlockTable value="{!listwrapper}" var="each" columnsWidth="10%,30%,30%,30%">
                <apex:column headerValue="Action">
                    <apex:inputCheckbox value="{!each.checked}"/>&nbsp;|&nbsp;
                    <apex:outputlink value="/{!}/e?retURL={!each.k.WhoId}" target="_top"> Edit </apex:outputlink>
                <apex:column headerValue="Subject" value="{!each.k.Subject}"/>
                <apex:column headerValue="ActiveDate" value="{!each.k.ActivityDate}"/>
                <apex:column headerValue="Status" value="{!each.k.Status}"/>               
                <apex:outputPanel id="refresh" rendered="true">
                <apex:outputPanel id="refresh1" rendered="{!refreshPage}">   

Bhanu PartapBhanu Partap

What you can do either you can reduce height of section in which you have assigned your vf and for more clear solution use Pagination affter fixing number of rows.