Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Autocomplete box width uses the width of the text input, minus the padding/border widths. Usually it is about the correct size, just 2 pixels off, but in my case, it doesn't look nice.
Comment | File | Size | Author |
---|---|---|---|
#1 | wrong_width-apachesolr_autocomplete-2270189-1.patch | 684 bytes | MiroslavBanov |
#1 | solr_autoc_after.png | 14.2 KB | MiroslavBanov |
solr_autoc_before.png | 15.01 KB | MiroslavBanov |
Comments
Comment #1
MiroslavBanov CreditAttribution: MiroslavBanov commentedPatch attached. I think it should generally work better with the patch on most themes.
Before patch:
After patch:
Comment #2
MiroslavBanov CreditAttribution: MiroslavBanov commentedComment #3
h3rj4n CreditAttribution: h3rj4n commentedI was also searching for this. The fix I found is the same as the patch supplies. Instead of the width() of the element it selects the outerWidth() of the element.
Works like a charm! :D
Comment #4
janusman CreditAttribution: janusman at Acquia commentedCommitted. Thanks!