{"issue":{"title":"Small patch for the selectmenu","created_at":"2011-12-23T13:09:36Z","user":{"login":"dtpop","id":1282121,"url":"https://api.github.com/users/dtpop","gravatar_id":"5ee2bb57de11629cf212117d6a3acb45","avatar_url":"https://secure.gravatar.com/avatar/5ee2bb57de11629cf212117d6a3acb45?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"labels":[],"updated_at":"2011-12-23T13:09:36Z","state":"open","id":2647036,"closed_at":null,"html_url":"https://github.com/fnagel/jquery-ui/issues/207","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Dear all,\r\n\r\nthanks for the great work.\r\n\r\nI 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:\r\n$('select#sel-product').selectmenu({maxHeight:'auto'});\r\nbut it did still show a smaller box with scroll bars.\r\n\r\nSo I patched the jquery.ui.selectmenu.js about line 423:\r\n\r\nold code:\r\n```\r\nif ( o.maxHeight && o.maxHeight < listH ) {\r\n...\r\n```\r\n\r\nto new code:\r\n```\r\nif ( o.maxHeight && o.maxHeight < listH || o.maxHeight == 'auto') {\r\n...\r\n```\r\n\r\nand everything works fine now and I can assign the auto hight.\r\n\r\nBest regards,\r\nWolfgang\r\n\r\n","number":207,"url":"https://api.github.com/repos/fnagel/jquery-ui/issues/207","comments":0,"assignee":null},"action":"opened"}