JQuery-autocomplete scrolling issue

I am using rails3-jquery-autocomplete in my application. I ran into the following problem: if you enter something in the input field so that the autocomplete data is displayed and after that scroll the page, the autocomplete data field does not scroll the page. He remains in the same position.

You can see what I came across here . Please note that this example has not been created by me, so I'm not sure that the same jquery plugin is used here. However, the problem has not changed.

+5
source share
4 answers

Perhaps you are missing the appendTo attribute from the Autocomplete options. The body is used by default, but you probably want to have it in a div container (it's hard to say for sure without seeing your code).

See documents .

+5
source

add this to css

     .ui-autocomplete { 
       height: 200px;
       overflow-y: scroll;
       overflow-x: hidden;
     }
+5
source

, , , . , .

0

, , , CSS "position: fixed" to ".ui-autocomplete". , : 34.212.191.181:3000.

P/s , :)

0

All Articles