aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-11-04 08:36:09 -0400
committerScott González <scott.gonzalez@gmail.com>2010-11-04 08:36:09 -0400
commit53215ded4a6618e054011e546c77cf63381e04be (patch)
treebeeab2a33da1b769b4e172e19f66d834bd986fec /demos/autocomplete
parent5431a4553a5fb55395ddeebe2a9297e869b8271d (diff)
downloadjquery-ui-53215ded4a6618e054011e546c77cf63381e04be.tar.gz
jquery-ui-53215ded4a6618e054011e546c77cf63381e04be.zip
Autocomplete (maxheight demo): Add padding to account for vertical scrollbar. Fixes #6250 - Autocomplete: horizontal scrollbar on IE7.
Diffstat (limited to 'demos/autocomplete')
-rw-r--r--demos/autocomplete/maxheight.html3
1 files changed, 3 insertions, 0 deletions
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