]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete (maxheight demo): Add padding to account for vertical scrollbar. Fixes...
authorScott González <scott.gonzalez@gmail.com>
Thu, 4 Nov 2010 12:36:09 +0000 (08:36 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 4 Nov 2010 12:36:09 +0000 (08:36 -0400)
demos/autocomplete/maxheight.html

index bac42f63a01f1d8682ea7e1734117dc4982045ca..867c4696bb56db48c2dde94dee263dfc55fb313e 100644 (file)
        .ui-autocomplete {
                max-height: 100px;
                overflow-y: auto;
+               /* prevent horizontal scrollbar */
                overflow-x: hidden;
+               /* add padding to account for vertical scrollbar */
+               padding-right: 20px;
        }
        /* IE 6 doesn't support max-height
         * we use height instead, but this forces the menu to always be this tall