2011-04-06 41 views
0

我遇到一個非常奇怪問題,即之前和之後的豐富的空間:組合框 不同於對H:inputText的。請參閱下面的截圖。對於datePicker和Application ID,一切都很好。這個間距對於組合框來說很奇怪。有任何想法嗎? -Jan古怪的間距H:panelGrid中使用h:inputText的豐富:組合框

截圖:http://i.stack.imgur.com/Fa5qv.jpg

<h:panelGrid columns="2"> 
<h:outputText value="#{bundle.lblsearchapplicationId}" /> 
<h:inputText id="inputapplicationId" value="#{searchBean.searchApplicationCriteria.LNGAPPLICATIONID}" /> 

<h:outputText value="#{bundle.lblsearchdealerName}" /> 
<rich:comboBox suggestionValues="#{XXXglobalHelperBean.dealerNames}" directInputSuggestions="true"> 
    <!-- <f:selectItems value="#{searchBean.searchApplicationCriteria.TXTDEALERNAME}" /> --> 
</rich:comboBox> 

<h:outputText id="lblsearchbusinessManagerName" value="#{bundle.lblsearchbusinessManagerName}" /> 
<h:inputText id="inputbusinessManagerName" value="#{searchBean.searchApplicationCriteria.TXTBUSINESSMANAGERNAME}" /> 

回答

1

sooooooooo,我想通了。每個組合框周圍都有一個豐富的組合框。我們需要爲這個shell設置margin和padding,其值與h:inputText相同。

.rich-combobox-shell { 
    position : relative; 
    margin-top: 2px; 
    margin-bottom:2px; 
    padding-top: 1px; 
    padding-bottom: 1px; 
}