so when I wrap the p:selectOneMenu around "display: inline-block", and try to click on the drop-down box list, the list will NOT drop down. This only happen in INTERNET EXPLORER 8 (work in IE6, 7, firefox). Here is the small code to recreate the issue.
<h:head>
<title>Facelet Title</title>
<link rel="stylesheet" href="resources/css/layout.css" type="text/css"/>
</h:head>
<h:body>
<div id="MainWrapper">
<h:form id="myForm">
<p:selectOneMenu value="#{viewBean.selectedFood}">
<f:selectItem itemLabel="Select One" itemValue=""/>
<f:selectItems value="#{viewBean.foodList}"/>
<p:ajax update=":myForm:text"/>
</p:selectOneMenu>
<br/>
<h:outputText id="text" value="#{viewBean.selectedFood}"/>
</h:form>
</div>
</h:body>
My layout.css
body{
text-align: center;
background-color: #EBEAE3;
margin: 0;
font-family: Trebuchet;
}
#MainWrapper{
display: inline-block;
width: 1100px;
background-color: white;
min-height: 1000px;
_height: 1000px;
}
The purpose of "MainWrapper" is to center the component. If I take the "display: inline-block" out, or use h:selectOneMenu, then everything work fine.