Announcement Announcement Module
Collapse
No announcement yet.
adding height style attribute when decoration spring js dojo combox Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • adding height style attribute when decoration spring js dojo combox

    I have a spring js dojo combo box and when rendered, its height spans almost the entire page. Is there anyway to set the height attribute when decorating the element as follows:

    Code:
    <form:select id="pays" path="pays">			
       <form:option value="" label=""/>
       <form:options items="${countries}" itemValue="description" itemLabel="description"/>				
    </form:select>
    
    <script type="text/javascript">		
        Spring.addDecoration(new Spring.ElementDecoration({	
           elementId : "pays",		
           widgetType : "dijit.form.ComboBox",
           widgetAttrs : { style: "height:50px;" }
        }));   
    </script>
    I have no idea why it's not working.
Working...
X