0

我有一个 Visualforce 工具栏,当我仅在 Firefox 中重新呈现页面块时,整个栏会垂直扩展到一个大的工具栏块。

请参阅下面的代码

<apex:toolbar id="theToolbar" style="background-color:#8d8d8d;background-image:none">
             <apex:toolbarGroup itemSeparator="line" location="left" id="toobarGroupForm">          
                  <apex:outputText style="color:#f8f8ff;font-weight:bold" value="Amount of Records"/>
                 <apex:selectList label="Record Amount" value="{!ShowAmountOfRecords}" size="1" required="false" >
                     <apex:actionSupport event="onchange" action="{!AmountOfRecordsAction}" reRender="innerblock" status="recordamountchange" />
                        <apex:outputPanel style="color:#f8f8ff;font-weight:bold">
                             <apex:actionStatus id="recordamountchange" startText="Showing more records..." stopText=""/>
                        </apex:outputPanel>
                     <apex:selectOptions value="{!AmountOfRecordsList}"/>
                  </apex:selectList>
                  <apex:outputText style="color:#f8f8ff;font-weight:bold" value="Filter By Document Type"/>
                  <apex:selectList label="Filter by Record Type" value="{!FilterByRecordType}" size="1" required="false" >
                     <apex:actionSupport event="onchange" action="{!FilterByRecordTypeAction}" reRender="innerblock" status="filterByRecordType" />
                         <apex:outputPanel style="color:#f8f8ff;font-weight:bold">
                             <apex:actionStatus id="filterByRecordType" startText="Filtering your records..." stopText=""/>
                        </apex:outputPanel>
                     <apex:selectOptions value="{!FilterByRecordTypeList}"/>
                  </apex:selectList>

              </apex:toolbarGroup>
            </apex:toolbar> 

这是 Firefox 中的已知错误吗?

4

1 回答 1

1

问题是我有同一个工具栏组的两个选项列表部分。确保将组件添加到不同的工具栏组。

<apex:toolbar id="theToolbar" style="background-color:#8d8d8d;background-image:none" rendered="true">
             <apex:outputText style="color:#f8f8ff;font-weight:bold" value="Amount of Records"/>
             <apex:toolbarGroup itemSeparator="line" location="left" id="toobarGroupForm" rendered="true">          
                 <apex:selectList label="Record Amount" value="{!ShowAmountOfRecords}" size="1" required="false" >
                     <apex:actionSupport event="onchange" action="{!AmountOfRecordsAction}" status="recordamountchange" reRender="innerblock" />
                        <apex:outputPanel style="color:#f8f8ff;font-weight:bold">
                             <apex:actionStatus id="recordamountchange" startText="Showing more records..." stopText=""/>
                        </apex:outputPanel>
                     <apex:selectOptions value="{!AmountOfRecordsList}"/>
                  </apex:selectList>
              </apex:toolbarGroup>
              <apex:outputText style="color:#f8f8ff;font-weight:bold" value="Filter By Document Type"/>
              <apex:toolbarGroup itemSeparator="line" location="left" id="toobarGroupForm2" rendered="true"> 
                  <apex:selectList label="Filter by Record Type" value="{!FilterByRecordType}" size="1" required="false"  >
                     <apex:actionSupport event="onchange" action="{!FilterByRecordTypeAction}" status="filterByRecordType" reRender="innerblock"/>
                         <apex:outputPanel style="color:#f8f8ff;font-weight:bold">
                             <apex:actionStatus id="filterByRecordType" startText="Filtering your records..." stopText=""/>
                        </apex:outputPanel>
                     <apex:selectOptions value="{!FilterByRecordTypeList}"/>
                  </apex:selectList>
              </apex:toolbarGroup>
            </apex:toolbar> 
于 2012-11-05T22:39:26.773 回答