Autocomplete Item Tip width too narrow
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
- undermensch
- Posts: 140
- Joined: 08 Jul 2010, 14:37
- Location: Florida, United States
The width of the autocomplete item tip div is a little too narrow, cutting off the last letter of the longest item.
PrimeFaces-11.0.6 / Wildfly 24
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
The width of itemTip Panel is calculated by AutoComplete Widget. You can override it using CSS !important. Please try;
Best Regards,
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,
Github Profile: https://github.com/mertsincan
- undermensch
- Posts: 140
- Joined: 08 Jul 2010, 14:37
- Location: Florida, United States
OK, thanks. The calculated width is just a few pixels too short. I used:
This seems to work well. Thanks.
Code: Select all
body .ui-autocomplete-itemtip.ui-state-highlight {
width: auto !important;
}
PrimeFaces-11.0.6 / Wildfly 24
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Glad to hear, thanks a lot for the update!
Best Regards,
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests