10
votes

I am trying to set width of handsontable dropdown to be according to the lookup data width, not column width. How can this be achieved?

See picture below please. Dropdown is too narrow to fit lookup data. screenshot

2
this one is tricky. i'm looking for the answer as well since what i do now is not pretty and mainly involves looking at the elements involved and making their min-width larger - ZekeDroid
@ZekeDroid is this fix github.com/handsontable/handsontable/issues/2599 somehow related to the issue here, or maybe since february there is a better way to solve the problem above? Thanks - husayt
yup! that's the solution - ZekeDroid
so I guess we have to wait for ver. 16 to test this. Then looking forward to it. Thank you very much. - husayt
@ZekeDroid, can you put the answer in answer section so I can award you a bounty. Thanks - husayt

2 Answers

4
votes

https://github.com/handsontable/handsontable/issues/2599

Github has a section on this.

Add the trimDropdown property. By default, this property is set to true. If you set it to false, this should accomplish what you need to do.

2
votes

Yes, the Github fix on 0.16 will include this solution. It's actually really nice, I'm using it already.