When you have a small textbox and a list with long items, the list width is set to the textbox width.
In these cases the long items span accross multiple lines in the listbox. I would like to set an "auto" width so the list can grow with the items width.
If I comment this line of code I obtain the result:
// this._completionListElement.style.width = Math.max(1, elementBounds.width - 2) + 'px';
Perhaps adding a property would be a good solution.
if ( this._completionListWidth != "" )
this._completionListElement.style.width = this._completionListWidth;
else
this._completionListElement.style.width = Math.max(1, elementBounds.width - 2) + 'px';
Comments: Workaround found, see comments.
In these cases the long items span accross multiple lines in the listbox. I would like to set an "auto" width so the list can grow with the items width.
If I comment this line of code I obtain the result:
// this._completionListElement.style.width = Math.max(1, elementBounds.width - 2) + 'px';
Perhaps adding a property would be a good solution.
if ( this._completionListWidth != "" )
this._completionListElement.style.width = this._completionListWidth;
else
this._completionListElement.style.width = Math.max(1, elementBounds.width - 2) + 'px';
Comments: Workaround found, see comments.