1

I'm trying to get a Visualforce dashboard component to scroll vertically. The scrollbar track shows up, but no scrollbar. Any thoughts?

    <apex:page Controller="RoleUtils" showChat="false" >
       <apex:outputPanel layout="block" style="overflow:scroll;">
           <apex:pageBlock title="My Team's Last Logins">
                <apex:pageBlockTable value="{!MyTeam}" var="le">
                   <apex:column value="{!le.name}"/>
                   <apex:column value="{!le.UserRole.Name}"/>
                   <apex:column value="{!le.lastlogindate}"/>
                </apex:pageBlockTable> 
            </apex:pageBlock>
       </apex:outputPanel>
   </apex:page>
2
  • Do you have enough content to make it scroll? Commented Sep 25, 2014 at 4:08
  • @CaspNZ, yes, depending on who the logged in user is. The dashboard component shows the last login date of every user under the logged in user in the role hierarchy.
    – Matt Santy
    Commented Sep 25, 2014 at 13:52

1 Answer 1

1

I think the only thing missing from your code is specifying a height for the outputPanel.

Adding height:300px; to your outputPanel should force the scrollbar to appear. Any height that makes the panel smaller than the table should do it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .