[richfaces-issues] [JBoss JIRA] Commented: (RF-6057) list height of comboBox rendered to small if first element in list is SelectItem with empty String value

Dean Ashby (JIRA) jira-events at lists.jboss.org
Thu Mar 19 20:56:23 EDT 2009


    [ https://jira.jboss.org/jira/browse/RF-6057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12458292#action_12458292 ] 

Dean Ashby commented on RF-6057:
--------------------------------

A workaround is to define the height of items explicitly via CSS:

.rich-combobox-item
{
  height: 16px;
}


> list height of comboBox rendered to small if first element in list is SelectItem with empty String value
> --------------------------------------------------------------------------------------------------------
>
>                 Key: RF-6057
>                 URL: https://jira.jboss.org/jira/browse/RF-6057
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.3.0
>         Environment: RichFaces 3.3.0, JSF 1.2.09, Tomcat 6.0.18, FF 3.0.6, IE 7.0 
>            Reporter: Remo Marti
>            Assignee: Anton Belevich
>             Fix For: Future
>
>
> The rendering of the list height in a combo box seems to depend on the number of elements contained therein, as well as the height of the first element. If the first element in the list is a SelectItem with empty value, the height of the entire list is incorrectly rendered.
> Example:
> <rich:comboBox>
> 	<f:selectItems value="#{bean.optionsWithEmptyElement}"/>
> </rich:comboBox>
> public List<SelectItem> getOptionsWithEmptyElement () {
> 	List<SelectItem> result= new ArrayList<SelectItem>();
> 	result.add(new SelectItem(""));
> 	result.add(new SelectItem("Item 1"));
> 	result.add(new SelectItem("Item 2"));
> 	result.add(new SelectItem("Item 3"));		
> 	return result;
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list