The comboBox's listWidth element seems to render a fixed size in the comboBox's div structure, forcing its parents to render larger than expected. This is annoying, because the comboBox's selection list is supposed to be on a higher layer and thus not having any effect on the surrounding layout.
This is an example piece of code causing the problem
<h:panelGrid width="100" border="1"> <rich:comboBox width="100" listWidth="200"> <f:selectItem itemValue="asdfasdfasdf asdfasdfasdf" /> </rich:comboBox> </h:panelGrid>
<h:panelGrid width="100" border="1"> <rich:comboBox width="100" listWidth="200" style="overflow: hidden; width: 100px !important"> <f:selectItem itemValue="asdfasdfasdf asdfasdfasdf" /> </rich:comboBox> </h:panelGrid>
Hi, this is our bug https://jira.jboss.org/jira/browse/RF-5963
Thanks for participation.