diff options
-rw-r--r-- | demos/selectmenu/default.html | 3 | ||||
-rw-r--r-- | themes/base/jquery.ui.selectmenu.css | 5 | ||||
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 8 |
3 files changed, 9 insertions, 7 deletions
diff --git a/demos/selectmenu/default.html b/demos/selectmenu/default.html index d8296dedb..7851b554a 100644 --- a/demos/selectmenu/default.html +++ b/demos/selectmenu/default.html @@ -17,6 +17,7 @@ $('select#speed').selectmenu({ dropdown: false }); + var withOverflow = $('select#number').selectmenu({ dropdown: false }); @@ -31,7 +32,7 @@ fieldset { border: 0; } label { display: block; } select { width: 200px; } - .overflow ul { height: 200px; overflow: auto; } + .overflow ul { height: 200px; overflow: auto; overflow-y: auto; overflow-x: hidden;} </style> </head> <body> diff --git a/themes/base/jquery.ui.selectmenu.css b/themes/base/jquery.ui.selectmenu.css index 46b78ea44..2b3c148a0 100644 --- a/themes/base/jquery.ui.selectmenu.css +++ b/themes/base/jquery.ui.selectmenu.css @@ -9,11 +9,12 @@ */ .ui-selectmenu-menu { padding: 0; margin: 0; position:absolute; top: 0; display: none; } -.ui-selectmenu-menu .ui-menu .ui-menu-item { width: auto; } .ui-selectmenu-menu .ui-menu .ui-menu-item a { padding: 0.3em 1em 0.3em 1em; } .ui-selectmenu-menu .ui-menu li.ui-state-disabled { padding: 0.3em 1em 0.3em 1em; } .ui-selectmenu-menu .ui-menu li.ui-selectmenu-optgroup { font-weight: bold; line-height: 1.5; padding: 2px 0.4em; margin: 0.5em 0 0 0; } .ui-selectmenu-open { display: block; } .ui-selectmenu-button span.ui-icon { right: 0.5em; left: auto; } -.ui-selectmenu-button span.ui-button-text { text-align: left; padding: 0.4em 2.1em 0.4em 1em }
\ No newline at end of file +.ui-selectmenu-button span.ui-button-text { text-align: left; padding: 0.4em 2.1em 0.4em 1em } + +.ui-selectmenu-menu .ui-menu .ui-menu-item { width: auto; } /* IE7 fix */
\ No newline at end of file diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 3090edd05..b6ec800db 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -251,6 +251,10 @@ $.widget( "ui.selectmenu", { } }, + widget: function() { + return this.buttonWrap.add( this.menuWrap ); + }, + _renderMenu: function( ul, items ) { var that = this, currentOptgroup = ""; @@ -379,10 +383,6 @@ $.widget( "ui.selectmenu", { this.menu.attr( "aria-disabled", value ); } }, - - widget: function() { - return this.buttonWrap.add( this.menuWrap ); - }, _readOptions: function() { var data = []; |