I'm currently building a website and I'm in need of a scrollbar for
the autocomplete widget in Content Taxonomy. After days of searching
for a solution, I've run out of options. Obviously, my programming skills
are almost non existent.
Here's what I've tried thus far. I've installed the 'Autocomplete
Elements' module. This module seems buggy as it does not work
at all. When enabled, it produces no results for my autocomplete
taxonomy terms. Maybe I missed a configuration step? I've also tried
some css. I've used the following:
#autocomplete {
height: 100px;
max-height: 100px;
overflow: auto;
overflow-y: auto;
overflow-x: hidden;
}
This worked fine in FF, but in IE, the drop down box disappears when I
click on the scrollbar. The scrollbar is a must as I will have
several hundred taxonomy terms.
Please contact me if you're interested in helping. We can discuss the bounty at that time. Thank you and take care.
Comments
Hi
Please enable your contact tab..
Yeah, that would probably
Yeah, that would probably help...done.
Basically, IE and
Basically, IE and Safari/Chrome (incorrectly) interpret a click on the scrollbar as being a click on the div, and the autocomplete code does its thing.
This patch against /misc/autocomplete.js is a fairly crude solution that works for me in Safari and IE8 - I've not tested in IE6/7 as we don't use those for editing. I do intend to look at a cleaner solution, but time hasn't allowed that so far.
autocomplete_scrollfix_6.x-1.23.patch:
John, your patch above worked
John, your patch above worked great! Thank you so much for sharing. Now, onto my next battle. Take care!
There is a problem whit the patch
There is a problem whith the patch : when you click on the submit button, or in the textfield, the value selected change. I don't no how to resolve it.
Solution to the bug
To resolve the problem with the changing value, I suppress the ! before the first condition of the if (in the patch) and it works fine for safari (I'm not using IE so I don't no fot it).
same on Drupal 7. Needs
same on Drupal 7. Needs Patch.
Still the scrollbars gets
Still the scrollbars gets disappear in chrome and IE9, anyone have a fix.. please share
Muhammad Qandeel Aslam
http://qandeelaslam.com
Here is a patch for D7, it
Here is a patch for D7, it was generated from D7.15, credit goes to the original code fixer for D6(John Pitcairn) above.
http://drupal.org/node/1809580
Muhammad Qandeel Aslam
http://qandeelaslam.com