Page 1 of 1

Autocomplete Item Tip width too narrow

Posted: 15 Oct 2020, 15:11
by undermensch
The width of the autocomplete item tip div is a little too narrow, cutting off the last letter of the longest item.

Re: Autocomplete Item Tip width too narrow

Posted: 19 Oct 2020, 10:18
by mert.sincan
Hi,

The width of itemTip Panel is calculated by AutoComplete Widget. You can override it using CSS !important. Please try;

Code: Select all

body .ui-autocomplete-itemtip.ui-state-highlight {
    width: 400px !important; /* Or min-width according to your needs */
}


Best Regards,

Re: Autocomplete Item Tip width too narrow

Posted: 21 Oct 2020, 16:07
by undermensch
OK, thanks. The calculated width is just a few pixels too short. I used:

Code: Select all

body .ui-autocomplete-itemtip.ui-state-highlight {
    width: auto !important;
}
This seems to work well. Thanks.

Re: Autocomplete Item Tip width too narrow

Posted: 21 Oct 2020, 16:49
by mert.sincan
Glad to hear, thanks a lot for the update!

Best Regards,