From 53215ded4a6618e054011e546c77cf63381e04be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 4 Nov 2010 08:36:09 -0400 Subject: [PATCH] Autocomplete (maxheight demo): Add padding to account for vertical scrollbar. Fixes #6250 - Autocomplete: horizontal scrollbar on IE7. --- demos/autocomplete/maxheight.html | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5