Define Width of Autocomplete options list
-
- Profound User
- Posts: 35
- Joined: Mon Feb 20, 2012 6:45 pm
- First Name: Brian
- Last Name: Luttman
- Company Name: BEPCO, Inc.
- Contact:
Define Width of Autocomplete options list
Apparently the UI is calculating the pixel width for the options list which seems to cause unnecessary padding on the right. Anybody figured out a way to define a set width?
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Define Width of Autocomplete options list
The textbox widget has a property called "results template". This is an HTML string that is used to format what the results look like. If you leave this property unset, Profound UI will build its own template by calculating the width of the data it receives in the first autocomplete result, and building HTML that specifies the result box that has that width.
So, if you wanted to style it differently, you could use your own HTML code in the results template property.
So, if you wanted to style it differently, you could use your own HTML code in the results template property.
-
- New User
- Posts: 1
- Joined: Fri Jun 29, 2018 6:47 am
- First Name: Peter
- Last Name: Rottach
- Company Name: Georg Jos. Kaes
- State / Province: Outside Canada/USA
- Country: Germany
- Contact:
Re: Define Width of Autocomplete options list
Does the calculation still work? In our tests the width from "autocomplete-col" is always 100px no matter how many characters the first autocomplete result has. We tried to build our own template but we didnt manage to fill the result list with our data.
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Define Width of Autocomplete options list
If you're experiencing problems with Profound UI behaving incorrectly, please open a support ticket with Profound Logic Support. The easiest way to do that is to e-mail support@profoundlogic.com.
Who is online
Users browsing this forum: No registered users and 1 guest