I am trying to add perfect-scrollbar plugin (which give a beautiful scrollbar instead of the browser default scrollbar) to a jQuery UI selectmenu
This is the JSFIDDLE
When I open the selectmenu
the scrollbar doesn't show up (even if I hover the list) until I get the mouse near to the bottom of the list (which means : the first time you open the selectmenu it gives a feeling that there are no other items because the scrollbar isn't there)
Any Idea how I can solve that ?
HTML
<select name="number" id="number">
<option>1</option>
<option selected="selected">2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
</select>
JS
$(function(){
$( "#number" ).selectmenu().selectmenu( "menuWidget" ).addClass( "overflow" ).perfectScrollbar();
});
CSS
#number{
width: 220px;
}
.overflow{
height: 200px;
position: relative;
}