Skip to content

Commit 53215de

Browse files
committed
Autocomplete (maxheight demo): Add padding to account for vertical scrollbar. Fixes #6250 - Autocomplete: horizontal scrollbar on IE7.
1 parent 5431a45 commit 53215de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

demos/autocomplete/maxheight.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
.ui-autocomplete {
1515
max-height: 100px;
1616
overflow-y: auto;
17+
/* prevent horizontal scrollbar */
1718
overflow-x: hidden;
19+
/* add padding to account for vertical scrollbar */
20+
padding-right: 20px;
1821
}
1922
/* IE 6 doesn't support max-height
2023
* we use height instead, but this forces the menu to always be this tall

0 commit comments

Comments
 (0)