From: Scott González Date: Thu, 4 Nov 2010 12:36:09 +0000 (-0400) Subject: Autocomplete (maxheight demo): Add padding to account for vertical scrollbar. Fixes... X-Git-Tag: 1.8.7~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=53215ded4a6618e054011e546c77cf63381e04be;p=jquery-ui.git Autocomplete (maxheight demo): Add padding to account for vertical scrollbar. Fixes #6250 - Autocomplete: horizontal scrollbar on IE7. --- diff --git a/demos/autocomplete/maxheight.html b/demos/autocomplete/maxheight.html index bac42f63a..867c4696b 100644 --- a/demos/autocomplete/maxheight.html +++ b/demos/autocomplete/maxheight.html @@ -14,7 +14,10 @@ .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