Index: trunk/extensions/ApiSandbox/ext.apiSandbox.js |
— | — | @@ -251,7 +251,7 @@ |
252 | 252 | function select( values, attributes, selected ) { |
253 | 253 | attributes['class'] = 'api-sandbox-input'; |
254 | 254 | if ( isset( attributes.multiple ) ) { |
255 | | - attributes['size'] = values.length.toString(); |
| 255 | + attributes['size'] = Math.min( values.length, 10 ); |
256 | 256 | } |
257 | 257 | var s = ''; |
258 | 258 | if ( typeof selected != 'array' ) { |