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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MiroslavBanov’s picture

Patch attached. I think it should generally work better with the patch on most themes.
Before patch:
width problem
After patch:
width problem solved

MiroslavBanov’s picture

Status: Active » Needs review
h3rj4n’s picture

Status: Needs review » Reviewed & tested by the community

I 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

janusman’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

  • MiroslavBanov authored d36439e on 7.x-1.x
    Issue #2270189 by MiroslavBanov: Autocomplete width to include border...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.