• Tracy Li
  • 0 Points
  • Member since 2014

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 1


Hi , I am newbie to Visual force and would need some help with this issue.


I am able to code all functionality but am not able to reduce the height of the rows and make them compact. Even after reducing the size of the text it wont help.I want the row size to be just more than the text size to accomodate more rows in the give space


Is the row height fixed if using Pageblocktable ? i've pasted the screenshot and the code below. Pleas help




<apex:page showheader="false" controller="zMessageController" id="pg">
<apex:includeScript value="{!URLFOR($Resource.jquery_new, 'js/jquery-1.5.1.min.js')}" />

<script type="text/javascript">
function popup(url,e){
      if (window.focus){newwindow.focus()}
 <apex:form id="formId" >
     <apex:pageBlock title="Messages" id="pageBlockId" tabStyle="colortabstyle__c" >
     <apex:panelGrid width="100%" style="text-align: center;" >
         <apex:commandButton value="New Message"  onclick="popup('/a0U/e')" oncomplete="return false;" rendered="{!$Profile.Name=='System Administrator' || $Profile.Name=='REA IT Admin Group'}"  />
     <apex:panelGrid width="100%"> 
        <apex:pageBlockTable value="{!messageList}" var="m" id="tableId" cellpadding="0" cellspacing="0" rowClasses="rowHeight1">
           <apex:column width="5%" rendered="{!$Profile.Name=='System Administrator' || $Profile.Name=='REA IT Admin Group'}"   >
                 <apex:facet name="header">Action</apex:facet>
                 <apex:commandLink style="height:22px;font-size:10px;" value="View"  onclick="popup('/{!m.id}')" oncomplete="return false;"  />
           <apex:column value="{!m.Date__c}" width="10%" style="align:top;" />
           <apex:column id="titleId">
               <apex:facet name="header">Title</apex:facet>
               <apex:commandLink value="{!m.Title__c}" reRender="titleId" action="{!reRenderDesc}"  style="align:top;" >
                   <apex:param name="messageNumber" value="{!m.name}"/>
               <apex:outputField id="descrBox" value="{!m.Description__c}" rendered="{!m.ShowDescription__c}" />

height: 5px !important;