fnagel/jquery-ui — Issue #207: Small patch for the selectmenu
Author: dtpop
Created: 2011-12-23 13:09:36+00:00
State: open

Dear all,

thanks for the great work.

I just had a small problem with the height of the opened select. It calculated a smaller height than the real height of the box. So i tried this:
$('select#sel-product').selectmenu({maxHeight:'auto'});
but it did still show a smaller box with scroll bars.

So I patched the jquery.ui.selectmenu.js about line 423:

old code:
```
if ( o.maxHeight && o.maxHeight < listH ) {
...
```

to new code:
```
if ( o.maxHeight && o.maxHeight < listH || o.maxHeight == 'auto') {
...
```

and everything works fine now and I can assign the auto hight.

Best regards,
Wolfgang