Auto complete shakes my page

Hi All,

I am having a problem with auto complete, something to do with the CSS i
think.

<%= text_field_with_auto_complete ‘company’,‘name’, {}, :skip_style =>
true, :indicator => ‘status-indicator’,:after_update_element =>
“function(element,value){ $(‘experience_details’).show();
$(‘company_id’).value = value.id}” %>

When you get a list of companies, if I move my up and down arrow to
shift through the options, the page itself moves up and down (literally
shakes!)

Here is the partial to show the list:

    <% for company in @companies -%>
  • >
    <%=h "#{company.name}" %>
    <%=h "#{company.org_type}" %>
  • <% end -%>

Here is the CSS (which is pretty standard):
.auto_complete {
position:absolute;
width:250px;
background-color:white;
border:1px solid #ccc;
margin:0px;
padding:0px;

}

.auto_complete ul {
list-style-type: none;
margin:0px;
padding:0px;
}

.auto_complete ul li.selected
{
background-color: #d7ebfe;

}

.auto_complete ul li {
list-style-type: none;
display:block;
margin:0;
padding:3px;
height:32px;
}

Please help me solve this.
I tried this on IE, Mozilla and Safari, the page moves up and down in
all 3.

Thanks in advance!
Raj

Ditto… havent found a solution yet

sjdale wrote:

Ditto… havent found a solution yet

Take a look at this:
http://www.ruby-forum.com/topic/128876#new

This solved our problem. some bug

Hi Raj,
I’m betting you’ve long since figured this out, but perhaps its the
forgery protection stuff kicking in? I found that did weird stuff
until I used Ryan’s RailsCasts mechanism instead of the auto_complete
plugin (before I re-vamped, I disabled forgery protection for a few
methods).
-Dale

On Aug 7, 4:43 pm, sjdale [email protected] wrote:

Ditto… havent found a solution yet

Raj Man wrote:

Hi All,

I am having a problem with auto complete, something to do with the CSS i
think.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs