Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery-autocomplete scroll issue

I'm using rails3-jquery-autocomplete in my application. I've faced the following issue: if you enter something in the input field so that autocomplete data gets displayed and scroll the page after that, the box with the autocomplete data isn't scrolled with the page. It stays at the same position.

You can look at what i'm facing here. Note that this example isn't created by me, so i'm not sure the same jquery plugin is used here. Nevertheless the issue is pretty the same.

like image 554
roman Avatar asked Jul 19 '12 09:07

roman


1 Answers

add this to the css

     .ui-autocomplete { 
       height: 200px;
       overflow-y: scroll;
       overflow-x: hidden;
     }
like image 168
Maysam Torabi Avatar answered Oct 11 '22 08:10

Maysam Torabi