jeromyevans / struts2yuiplugin

JSP Tags for Struts2 that create active YUI components
0 stars 0 forks source link

REQUEST: size attribute in autocomplete #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please provide any additional information below.
could you please provide size attribute for the autocomplete

Thanks

Original issue reported on code.google.com by myb...@gmail.com on 18 Mar 2008 at 8:21

GoogleCodeExporter commented 9 years ago
It is just a wrapper around the YUI AutoComplete widget and there does not 
appear to
be any property or configuration attribute for size (see:
http://developer.yahoo.com/yui/docs/YAHOO.widget.AutoComplete.html).

If what you want to do is increase the visual width of the element, then you 
can do
that with CSS. Suppose that you have given the element the id="state". The tag 
will
append InputVisible to the id for the visible input field (i.e. 
stateInputVisible).
The drop down container id gets appended with "Container" (i.e. stateContainer).

So, you could set the width in the CSS for #stateInputVisible and for
#stateContainer. For example:

<head>
    <style type="text/css">
    #stateInputVisible {width:25em;}
    #stateContainer {width:250px;}
    </style>
</head> 

Original comment by cody.bur...@gmail.com on 30 Mar 2009 at 4:58

GoogleCodeExporter commented 9 years ago
As described in the former comment, setting the size of the widget is best
left to CSS.

Original comment by cody.bur...@gmail.com on 2 Apr 2009 at 9:18